473,410 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

Blank pages when calling printReport multiple times

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
Nov 20 '05 #1
2 1876
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" <rb******@pacbell.net> wrote in message
news:02****************************@phx.gbl...
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

Nov 20 '05 #2
Hello,

"Raul Medina" <rb******@pacbell.net> 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
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: dmcconkey | last post by:
Hi folks, I have a client with four websites. Each site has a contact form that is identical. They all have "required" fields validated through a JavaScript onSubmit() function. Upon validation,...
4
by: yabba | last post by:
w2k server... after rebooting the event viewer/application log shows multiple restarts of Active Server Pages and they continue to build in memory as each start produces a IWAM_SERVERNAME in the...
5
by: Usenet User | last post by:
A user informed me that some pages I've created with nested tables are spewing out dozens of blank pages at the end of a print run. No one noticed this for a long time, as printer-friendly files...
14
by: charlie_M | last post by:
Is there a way to blank the screen in a FORM's onsubmit=... to blank the screen for the user?? I asked this before and got a way to blank a table by id with ...
6
by: Andy | last post by:
Hello, I am having many problems with setting up a parameter query that searches by the criteria entered or returns all records if nothing is entered. I have designed an unbound form with 3...
9
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
0
by: AMDRIT | last post by:
We have a series of reports for a new application. As part of the process flow, these reports should be generated and printed at the conclusion of the transaction. Prior to this requirement, each...
4
by: Mal Reeve | last post by:
Hello, I have a report that has only 2 levels of grouping. The detail section is simply 1 large block for a memo field. I am finding that on some occasions the report errors and generates...
2
by: william.david.anderson | last post by:
Hi there, I'm thinking of using a PREPARE statement inside a stored procedure, but am wondering about the performance penalty associated with calling PREPARE multiple times. Below is an...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.