Printing without Preview Problem?!
Posted: Thu Jul 01, 2010 7:19 am
Hi
I have a report that I wanna be printed without being shown.
I have a problem with this issue.
I have dragged stireport to my form in below section so I have necessary Defining and parameters in my designer.vb form
Then I right click on my report (stireport) and entered in the designer section and I completed my designing there and save it.
So I have my report in my resources of my software.
Now I wanna use it through my source code.
First I filled my dataset and datatables in it.
Then I compiled my Report and set dynamic variables in it.
Now I wanna print it without showing the preview form.
The first print only have my variables which are not in the data section.
Actually I DON’T HAVE MY DATA IN FIRST PRINT!!!
But Second and third print have data and is doing fine.
When I close the form and open it again the problem is coming back!
WHY?!
If I show the preview form this problem is resolved but I don’t want to do that.
What’s happening through show and Print ?
What should I do before printing in order to have data in first print?
I even used Regdata and load from external file but it didn't resolve my problem!!!
Please help me
I'm using VB2010.net (3.5)
Best regards
Senamas
I have a report that I wanna be printed without being shown.
I have a problem with this issue.
I have dragged stireport to my form in below section so I have necessary Defining and parameters in my designer.vb form
Then I right click on my report (stireport) and entered in the designer section and I completed my designing there and save it.
So I have my report in my resources of my software.
Now I wanna use it through my source code.
First I filled my dataset and datatables in it.
Then I compiled my Report and set dynamic variables in it.
Now I wanna print it without showing the preview form.
The first print only have my variables which are not in the data section.
Actually I DON’T HAVE MY DATA IN FIRST PRINT!!!
But Second and third print have data and is doing fine.
When I close the form and open it again the problem is coming back!
WHY?!
If I show the preview form this problem is resolved but I don’t want to do that.
What’s happening through show and Print ?
What should I do before printing in order to have data in first print?
I even used Regdata and load from external file but it didn't resolve my problem!!!
Please help me
I'm using VB2010.net (3.5)
Best regards
Senamas