By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,069 Members | 1,716 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,069 IT Pros & Developers. It's quick & easy.

How to change rdlc between viewing/printing form

P: 1
Hi everyone, this is my first post so please bear with me.
I have the following situation: i have a local report that needs to have two "versions": one for viewing in the report viewer (with all elements: lines, borders, "labels", etc..) and another one for printing - it needs only the information from the dataset.
I need this because i have a lot of "official" documents (medication prescriptions, sick leave etc...) so the user must see the full report on screen, but when printing he uses an "official" paper that needs to be filled only with the relevant information.
So in the viewing form i have something like |First Name:| Jonh but in the printing form i only need to show John.
How can this be done?
One idea was to use two different versions of the same report (so two rdlcs for viewing and printing) but this doesn't feel to be the best solution.
Now i'm working on another solution, with one report parameter ( Printable - true, false) and all the elements on the report have the visible property set to the value of the parameter.
In my report viewer i set the value of the parameter to false if the user clicks on the print button, but i can't manage to set the parameter back to true once the user cancels the printing - so the report remains in the printable state view.

Any thoughts on this matter would be greatly appreciated.
Aug 1 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.