VB.NET --> ReportViewer --> 1st Print Job always gets ignored

G

Guest

Hello,

I am using vb.net 2005 with the report viewer control and the built-in
reports (NOT CRYSTAL REPORTS). I have two datasets, two binding controls and
two data table adapters. One complete set for production data and one
complete set for development data. The report viewer fills a regular form,
which when opened grabs the data for the report (based on certain parameters)
The reports themselves are RDLC files.

When the reports are generated, if I hit the print button on the report
viewer toolbar (I pause my printer to watch the jobs), I see the first job
getting sent to the printer and say 'spooling'. then the job disappears and
nothing prints. If i hit the print button a second time, the job spools and
prints. This happens everytime, with all users and all different types of
printers.

I am stumped, please help! Thanks in advance.

Cam
 
G

Guest

Follow up From CAM...

Yes, the Print dialog does display and the user hits the OK button.

If after previewing the report, I click on the 'Print Layout' button and
then hit Print, the job does print the first time. If in code (form load), I
do the following:

Me.ReportViewer1.SetDisplayMode(DisplayMode.PrintLayout)

(set the print layout in code), it also prints the job the first time.
However, if in code (form load), I do the following;

Me.ReportViewer1.SetDisplayMode(DisplayMode.PrintLayout)
Me.ReportViewer1.SetDisplayMode(DisplayMode.Normal)

(set it to print layout and then back to normal), the job again behaves like
before (does not print on the first print send).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top