469,612 Members | 2,576 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,612 developers. It's quick & easy.

How to change rdlc between viewing/printing form

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
0 1237

Post your reply

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

Similar topics

9 posts views Thread by Altman | last post: by
1 post views Thread by Larry Bud | last post: by
18 posts views Thread by =?Utf-8?B?SGVyYg==?= | last post: by
reply views Thread by =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.