Cant attach a pdf to a crystal report

Michael Katz
Michael Katz used Ask the Experts™
on
I have a shared variable in a Report Header...I then have an ole object in the Report Footer..
My formula  ( X-2) for the Graphic after I have inserted the .pdf is

WhilePrintingRecords;
Shared StringVar SCode;

"\\Share\"+SCode+".pdf"

Why isn't it working??
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Mike McCrackenSenior Consultant
Most Valuable Expert 2011
Top Expert 2013

Commented:
I believe the formula only works for graphics

Have you put the value of the folder path in the shared variable?

What version of Crystal?

mlmcc
Senior Consultant
Most Valuable Expert 2011
Top Expert 2013
Commented:
I just experimented.  The graphic formula works great for a jpg or other graphic file.  It doesn't work for non-graphic files.

mlmcc
Ido MilletProfessor of MIS at Penn State Erie and Owner, Millet Software

Commented:
A possible solution is to use a UFL (User Function Library) to convert the PDF file to an image file (on the fly) and set the Graphic Location expression to the new file. You can build your own or use a 3rd-party UFL.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial