Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Printing Problem

Printing Problem

Scheduled Pinned Locked Moved Visual Basic
helpjsonquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bso_Cool
    wrote on last edited by
    #1

    What I a trying to do is Print a bunch of text which I get from a text file. I have been able to do that no problem but when I get to the end if there is to much text, I can't get it to go over onto anther page it either just ignores the rest or when it does actually print it it prints it over what I have already done on the same page. I have tried and tried on the e.hasmorepages and it does nothing for me when it actually does some what work it just goes and tries to print XXXX amount of pages instead of just like 2 or 3. I do save my spot of where I last printed on the last page, but it won't start a second page to start printing on that 1. can anyone Please Help Me? Here is a sample of my code, that is to determin when to stop. CurY is the Y location of the Printing Page. QNum is the Number of line so far I have Printed and TotCount is the number of lines I have left to Print If CurY >= 1000 Then Hault = True e.HasMorePages = True StoppedNum = QNum End If If QNum = TotCount Then e.HasMorePages = False End If If there is a better way please let me know! I Thank You for your Time, and Patience! It is always Coffee Time!

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups