Filipe Costa
Filipe Costa

Reputation: 664

Crystal Reports - two print formats

I have two ways to print a report, into a PDF or on letterhead.

Is it possible to have in a report a customization so that in the PDF I have a logo in the header, and on the letterhead I don't have that logo in the header?

Upvotes: 1

Views: 595

Answers (1)

Buck Hicks
Buck Hicks

Reputation: 1574

You could add a parameter with a boolean to the report. Something like IsPDF and then in the header Click on the Format Graphic (assuming it is an image) of the logo and then choose the X2 across from the Suppress checkbox.

enter image description here

From there you can write code that will suppress the graphic when the IsPDF paramater is False and not suppress when the IsPDF is True.

IF {?IsPDF} = True Then
False

Edit: After writing this out I think I would actually make the boolean parameter be IsLetterHead so that when it was True it would be consistent with the True in the Suppress. In other words

IF {?IsLetterHead} = True Then
True

Upvotes: 1

Related Questions