We help IT Professionals succeed at work.

Cant attach a pdf to a crystal report

Michael Katz
Michael Katz asked
on
175 Views
Last Modified: 2017-03-22
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

Mike McCrackenSenior Consultant
CERTIFIED EXPERT
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
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Ido MilletProfessor Emeritus of MIS at Penn State Erie and Owner, Millet Software
CERTIFIED EXPERT

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.