Jump to content

I am about to pull my hair out researching why this is not w...


Michelle Adams

Recommended Posts

I am about to pull my hair out researching why this is not working, or sometimes not working. I have an image of a checklist that we output as a pdf with the students initials and last 4 of id in the footer. I have scaled it down to test each checklist image separately here. 2 out of about 10 images will display. All images are located in the same folder in the repository. All images will open from the repository alone. If I change the format to HTML they all work, but I need PDF. If I do a HOLD file FORMAT PDF, it will write the file and display all the images(checklists). Why will it not work with PCHOLD FORMAT PDF Any help is appreciated.

DEFINE FILE 1holdfiles/H_ACCEPTANCE_DRIVER_MANUAL

CHECKLIST/A2000V= 'checklist_transfer.jpg';

SUBFIRST/A1V= SUBSTR(240, FNAME, 1, 2, 1, SUBFIRST);

SUBLAST/A1V= SUBSTR(240, LNAME, 1, 2, 1, SUBLAST);

FOOT1/A4V= SUBSTR(9, VNUM, 6, 9, 4, FOOT1);

FOOT2/A6V= SUBFIRST || SUBLAST || FOOT1 ;

END

 

TABLE FILE 1holdfiles/H_ACCEPTANCE_DRIVER_MANUAL

PRINT

CHECKLIST AS ''

BY LNAME NOPRINT

BY FNAME NOPRINT

BY PIDM NOPRINT

WHERE STREET_ADDRESS1 NE MISSING;

WHERE USERNAME NE MISSING;

WHERE RESD NE 'M';

ON PIDM PAGE-BREAK

FOOTING

"<FOOT2"

ON TABLE SET PAGE-NUM OFF

ON TABLE PCHOLD FORMAT PDF

ON TABLE SET STYLE *

UNITS=IN, PAGESIZE='Letter',

$

TYPE=FOOTING,

SIZE=7,

$

TOPMARGIN = 0.005000,

$

TYPE=DATA,

COLUMN=N4,

IMAGE= (CHECKLIST),

SIZE=(8.000000 10.000000),

PRESERVERATIO= ON,

$

ENDSTYLE

END

Link to comment
Share on other sites

Thank you Waz. Yes it is dynamic. The correct checklist depending on the student type needs to be displayed. I opened a ticket with TIBCO and after a lot of trial and error with them, we discovered it was the image format! I guess .jpg is not supported now. I changed all the images to .gif and works like a charm, like it use to
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...