PC Review


Reply
Thread Tools Rate Thread

Blank pages when calling printReport multiple times

 
 
Raul Medina
Guest
Posts: n/a
 
      31st Aug 2003
I am trying to print the same visual basic report multiple
times in my VB 6.0 application using the command
<reportObject>.printReport False, rptRangeAllPages. The
only thing that differs between each report is a label
that get modified. The result is only the last report
processed is printed with the other reports producing
blank pages.

If I put a delay so that each printReport command is
called only after the preceding report is printed will
they all print out correctly. Delaying until the report
is spooled isn't enough. The report must be printed by
the printer before the next printReport is called or the
previous report will be blank.

Any help as to a solution to this problem with using a
delay would be apprieciated.

Thanks in advance,
Raul
 
Reply With Quote
 
 
 
 
Tom Spink
Guest
Posts: n/a
 
      31st Aug 2003
Hi, this is a VB.NET newsgroup, please post to microsoft.public.vb[.*]

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"


"Raul Medina" <(E-Mail Removed)> wrote in message
news:02ee01c37009$8a326180$(E-Mail Removed)...
> I am trying to print the same visual basic report multiple
> times in my VB 6.0 application using the command
> <reportObject>.printReport False, rptRangeAllPages. The
> only thing that differs between each report is a label
> that get modified. The result is only the last report
> processed is printed with the other reports producing
> blank pages.
>
> If I put a delay so that each printReport command is
> called only after the preceding report is printed will
> they all print out correctly. Delaying until the report
> is spooled isn't enough. The report must be printed by
> the printer before the next printReport is called or the
> previous report will be blank.
>
> Any help as to a solution to this problem with using a
> delay would be apprieciated.
>
> Thanks in advance,
> Raul



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      1st Sep 2003
Hello,

"Raul Medina" <(E-Mail Removed)> schrieb:
> I am trying to print the same visual basic report multiple
> times in my VB 6.0 application using the command
> <reportObject>.printReport False, rptRangeAllPages. The


Ng for Data Environment Reports:

news://news.microsoft.com/microsoft.....dataenvreport

Ng for Crystal Reports:

news://news.microsoft.com/microsoft.public.vb.crystal

Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help calling procedure multiple times or suggestions on other obvoussolution SpiffW@gmail.com Microsoft Access 2 7th Jun 2009 05:36 AM
Exception Error When Calling Procedure Multiple Times aziz001@googlemail.com Microsoft VB .NET 4 9th Mar 2006 02:25 PM
Calling DataBind() multiple times-- strange side effects? Jim Bancroft Microsoft ASP .NET 2 28th Dec 2004 12:57 PM
Report(s) calling multiple times for primary key =?Utf-8?B?Um9zZQ==?= Microsoft Access Reports 0 14th Dec 2004 10:31 PM
calling multiple web pages Mark Fox Microsoft ASP .NET 5 15th Dec 2003 07:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:45 AM.