Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print

Status
Not open for further replies.

Sot

Programmer
Oct 10, 2002
24
US
I am using crystal reports 8.5 and ASP
I have included an image and include few field values in my report...while printing i do not want to print the image..only i need to print the values...

Ravi
 
I don't know ASP but maybe you could try something like:

Create a formula @Print and in it set a variable such as

numberVar print := 0;

When printing the report, set print := 1.

In the suppression format for your image, @print = 1

Jacque
 
can you give more detail...
sot
 
Create a Boolean Parameter in the report set to a default of False to be used as the suppression criteria of the image (or section which contains the image might be better for formatting reasons), and pass the parameter to the report.

Suppression for an object is located by right clicking the object and selecting Format Fied->X-2 next to Suppression. Then just place the Parameter in there, as in:

{?Printme}

Now set the parameter to true to suppress it.

-k
 
i am not clear....can u explain more
sot
 
I can't explain it as well as -k, but here's my less articulate version, hopefully this helps.

In the crystal report:

Create a formula named Print, put a 0 in the formula.

Select the image and right click, go to the format editor and click on the ->X-2 next to Suppress.
Enter the following: @Print = 1

In the application which is calling the report, where the print call is being made, set the variable Print := 1.


 
You would pass the parameter from your code, and hardcode the report to have the parameter as the suppression criteria as described above.

Perhaps this will help:


I've never set a formulas value from ASP as Jacque suggests, but parameters are designed for this sort of thing.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top