473,809 Members | 2,849 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Print MultiPage DB Report

GW
Trying to force a new page when required using e.HasMorePages = True but not
having much luck.

All prints OK except for trying to figure out how to do a page feed without
exiting the loop.

There is a lot of data gathering from DB in each loop so exiting the loop is
not an option.

All the examples for multipage printing I found so far are based on printing
simple text from a streamreader , or list box, etc.

LS_PAR7311 is to be called only once.

Tried placing the code for LS-PAR7311 inside the PrintPage but that didn't
do the trick either.

Any suggestions or a different approach would be appreciated.

(Posted this in drawing.ng but no solutions as of yet).

Thks in advance, GW
'//----------------------------------------------------------------\\

Private Sub oPrintDoc_Print Page(ByVal sender As Object, ByVal e As
System.Drawing. Printing.PrintP ageEventArgs)

Dim grfx As Graphics = e.Graphics
LS_PBH_7310(grf x, grp, ipMgns) '// Prints boxes, lines and static text
for each page

If mi_Pgn <= 1 Then

'// Sub with details to be printed (some 12 pages of code. Passed "e"
ByRef but appears to have no effect, probably because this is only called
once inside mi_Pgn <= 1)

LS_PAR7311(msSO urceFrm, msSQL, grfx, e)

End If

mi_Pgn += 1

End Sub '(oPrintDoc_Pri ntPage)

'\\--------------------------------------------//
'//----------------------------------------------------------------\\

Private Sub LS_PAR7311(.... )
Do While Critera "A"

'/ Print Details for criteria "A"
Do While Ctriteria "B"

Do While Criteria "C"

'// gather details for "C"

End Do '("C")

'// Print Details for "C"

if iCnt = 5

iCnt = 0

e.HasMorePages = True '*** <== This is where I'm stuck, need to
do a page feed WITHOUT the loop. ***

'// Print another template with lines and static text thru
LS_PBH7310()

end if '(iCnt = 5)

End Do '("B")

'// Print Details for "B"

End Do '("C")

End Sub '(LS_PAR7311)

'\\--------------------------------------------//

Nov 20 '05 #1
1 1549
GW

"GW" <gw@nospam.look .ca> wrote in message
news:OI******** ********@TK2MSF TNGP12.phx.gbl. ..
Trying to force a new page when required using e.HasMorePages = True but not having much luck.

All prints OK except for trying to figure out how to do a page feed without exiting the loop.

There is a lot of data gathering from DB in each loop so exiting the loop is not an option.

All the examples for multipage printing I found so far are based on printing simple text from a streamreader , or list box, etc.

LS_PAR7311 is to be called only once.

Tried placing the code for LS-PAR7311 inside the PrintPage but that didn't
do the trick either.

Any suggestions or a different approach would be appreciated.

(Posted this in drawing.ng but no solutions as of yet).

Thks in advance, GW
'//----------------------------------------------------------------\\

Private Sub oPrintDoc_Print Page(ByVal sender As Object, ByVal e As
System.Drawing. Printing.PrintP ageEventArgs) Handles oPrintDoc.Print Page

Dim grfx As Graphics = e.Graphics
LS_PBH_7310(grf x, grp, ipMgns) '// Prints boxes, lines and static text for each page

If mi_Pgn <= 1 Then

'// Sub with details to be printed (some 12 pages of code. Passed "e"
ByRef but appears to have no effect, probably because this is only called
once inside mi_Pgn <= 1)

LS_PAR7311(msSO urceFrm, msSQL, grfx, e)

End If

mi_Pgn += 1

End Sub '(oPrintDoc_Pri ntPage)

'\\--------------------------------------------//
'//----------------------------------------------------------------\\

Private Sub LS_PAR7311(.... )
Do While Critera "A"

'/ Print Details for criteria "A"
Do While Ctriteria "B"

Do While Criteria "C"

'// gather details for "C"

End Do '("C")

'// Print Details for "C"

if iCnt = 5

iCnt = 0

e.HasMorePages = True '*** <== This is where I'm stuck, need to
do a page feed WITHOUT exiting the loop. ***

'// Print another template with lines and static text thru
LS_PBH7310()

end if '(iCnt = 5)

End Do '("B")

'// Print Details for "B"

End Do '("C")

End Sub '(LS_PAR7311)

'\\--------------------------------------------//

Nov 20 '05 #2

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

Similar topics

0
1276
by: quantumcloud | last post by:
Hi, Can anyone show me an example of how to write a script in php to sho multipage navigation links like 1, 2, 3,...last. Script will retriev result from the database and display a report by breaking it apart int multiple pages as necessary. Thanks
1
2425
by: news.microsoft.com | last post by:
Hello group, My goal is to attach an image over another image. Top image should be transparent so the back image is visible through the top one. Bellow is a test code in VB.NET. You need to create a form, a button (Button1) and an Picture Box (picBox). "watermark.jpg" is any jpg image, "beispiel.tif" is a multipage TIFF image with the white background, which will turn to transparent. The most important thing here is that the TIFF image...
1
1550
by: szabelin | last post by:
Is it possible to dynamically add a PageView to MultiPage? TabStrip has items property, so Tab and TabSeparator can be added... how about adding PageView to MultiPage? If not possible please recommend another client-side tab control. Thank you
1
2244
by: Dan | last post by:
IE WebControls Tab/MultiPage state problem I have a IE tab/multipage on a WebForm (aspx) like this: <code> <iewc:TabStrip id="tabs" runat="server" TargetID="MultiPage1"> <iewc:Tab Text="Tab1" ID="tp Tab1"></iewc:Tab>
2
2545
by: Child | last post by:
I have a page which has a tabbstrip and a multipage. The tab strip works great, and navigates the multipage no problem. However, I have a situation where I would like to have a "hidden" multipage thats not navigated to via the tabstrip and I am running into trouble. i see that supposedly I can do this with multipage.selectedindex = myindex but that doesnt' appear to work for me. I was wondering if I could use both the tabstrip and...
1
2748
by: Ather Ali Shaikh | last post by:
I have a toolkit which is doing the same. but I want to write my own code. That will receive a tiff image and convert it into multipage jpeg file. Regards Ather Ali Shaikh
0
951
by: John | last post by:
This is in reference to Internet Explorer WebControls that can be located at the following link: http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/overview/overview.asp On the above link, I click on the "Tour of the WebControls". I would scroll down to the section: TabStrip and MultiPage Then I would click on the "Show Me" button for the demo. When I click on different tabs and do "Print Preview" or even...
2
1967
by: Rob | last post by:
I have a webform that uses the TabStrip and MultiPage webcontrols. I also have a Print button on the form to print all of the information of the webform (all tabs): <input type="button" value="Print" onclick="window.print()"> However, this only prints the first tab or PageView. To fix this problem, I have added an @media rule to my stylesheet: @media print
1
4894
by: Ira | last post by:
I was successful in creating the multipage Tif files in VB.net using the following the following code: Public Sub SaveSeveralOnePageFilesInADir(ByVal DrNm As String, ByVal resultFl As String) Dim pages As Bitmap = Nothing Dim PgCnt As Integer
0
9722
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10378
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10121
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4333
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.