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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programmatically Suppressing Report Sections?

Status
Not open for further replies.

dckerry73

Programmer
Oct 1, 2008
9
0
0
CA
Can someone please tell me if there is a way to suppress sections of a report at runtime? I am giving the user the option to output to excel or pdf. If excel, I want to suppress the page headers and footers so I don’t end up with a bunch of blank rows for every page break. Can this be done or do I need to create two nearly identically reports to accomplish this? Thanks!

Version – vs2003, C#
 
You can link your user input to a parameter used within the report. This parameter can then be used to conditionally suppress sections.

Ian
 
Oh that's clever, I like it, wish I had thought of that! Thanks a lot for the suggestion Ian.
 
Page headers and footers don't ordinarily create blank rows in an Excel export.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top