Wrox Programmer Forums
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 20th, 2005, 09:49 AM
Registered User
 
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tock_wa
Default Graphics.Hasmorepages

Please tell me, while following code just print only the first page while it have more one.
Dim LineofLsv As Integer = 0


        e.HasMorePages = False

        LineofLsv = LsvPrint.Items.Count - 1
        For i = 0 To LineofLsv

            CurYP = CurYP + 63 '63
            CurXP = 575
            For k = 1 To Len(tmpcomTaxid)
                AnyString(e.Graphics, CStr(Mid(tmpcomTaxid, k, 1)), CurXP, CurYP)
                CurXP = CurXP + 12
            Next k
            CurYP = CurYP + 25 '88
            AnyString(e.Graphics, TmpCompanyName, 63, CurYP)
            CurYP = CurYP + 25 '113
            AnyString(e.Graphics, TmpcompanyAdd, 63, CurYP)
            CurYP = CurYP + 143 '256
            Dim TmpTax As String = ""
            TmpTax = CStr(LsvPrint.Items(i).SubItems(3).Text)
            CurXP = 575
            For j = 1 To Len(TmpTax)
                AnyString(e.Graphics, CStr(Mid(TmpTax, j, 1)), CurXP, CurYP)
                CurXP = CurXP + 12
            Next j
            CurYP = CurYP + 25 '281
            AnyString(e.Graphics, CStr(LsvPrint.Items(i).SubItems(1).Text) & " " & CStr(LsvPrint.Items(i).SubItems(2).Text), 63, CurYP)
            CurYP = CurYP + 38 '319
            AnyString(e.Graphics, CStr(LsvPrint.Items(i).SubItems(4).Text), 63, CurYP)
            IntUnitP = CDbl(LsvPrint.Items(i).SubItems(7).Text)
            IntTaxU = CDbl(LsvPrint.Items(i).SubItems(8).Text)
            CurYP = CurYP + 419 '738
            AnyString(e.Graphics, Dp1.Value.ToString("d MMM yy"), 456, CurYP)
            AnyString(e.Graphics, IntUnitP.ToString("#,##0.00"), 563, CurYP)
            AnyString(e.Graphics, IntTaxU.ToString("#,##0.00"), 694, CurYP)
            CurYP = CurYP + 118 '807
            AnyString(e.Graphics, IntUnitP.ToString("#,##0.00"), 563, CurYP)
            AnyString(e.Graphics, IntTaxU.ToString("#,##0.00"), 694, CurYP)
            CurYP = CurYP + 24 '831
            ThaiText(IntTaxU)
            AnyString(e.Graphics, "(" & Stmp & ")", 231, CurYP)

            CurYP = CurYP + 182 '1013
            AnyString(e.Graphics, Dp1.Value.ToString("d MMM yy"), 375, CurYP)


            If i = LineofLsv Then
                e.HasMorePages = False
            Else
                e.HasMorePages = True
            End If
        Next i






Similar Threads
Thread Thread Starter Forum Replies Last Post
c/c++ graphics hafizmuhammadmushtaq C++ Programming 0 October 19th, 2007 11:33 PM
hasmorepages property of print document component ashkumar General .NET 0 July 28th, 2006 10:48 AM
Help on graphics steparths C++ Programming 0 June 30th, 2006 02:09 PM
graphics in C++ MASTER_1st C++ Programming 2 November 28th, 2005 12:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.