views:

208

answers:

2

Hi! I'm using a reportviewer to show and print an id Card. The id Card is pre-printed with the texts "Name, Surname, Gender"...etc and I only need to print in the gaps of the card near this labels.

I want to show this Images and Textboxes preprinted in the reportviewer, but I do not want to print this items, but only the info in the gaps.

How can I achieve it? Can I hide some elements when printing or set some "thisIsNotPrintable" magic property?

Thanks.

+1  A: 

If You are talking about SQL Report Viewer Control unfortunately, I am afraid that is not possibility.

Here is my SO question on that subject .

One of solutions are that You build another report for printing and add link to that report inside first report for showing. If you are using WIN Forms you can also send second report directly to printer.

adopilot
+1  A: 

Late, but there are one solution. You can add a parameter to the report and in the Print event, change the parameter value and refresh the report (ReportViewer1.RefreshReport())

Hugo
never it's too late... :D
Jonathan