User Profile

Collapse

Profile Sidebar

Collapse
Mischief07
Mischief07
Last Activity: Apr 28 '10, 08:55 PM
Joined: Apr 28 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Mischief07
    replied to Print Document PrintPage problem
    There are no blank lines in the text file. It is a dumb of data from a database that I do before printing. here is a small portion of it.

    Code:
    --------------------2010-04-27 Kanban A5D3--------------------
    Pull #3 A5D3: AA 16  3 of 6 -- 2010-04-28 10:30 AM
    Pull #6 A5D3: AA 16  4 of 6 -- 2010-04-28 10:30 AM
    Pull #9 A5D3: AA 16  5 of 6 -- 2010-04-28 10:30 AM
    Pull #12 A5D3: AA 16  6 of 6 -- 2010-04-28
    ...
    See more | Go to post

    Leave a comment:


  • Mischief07
    replied to Print Document PrintPage problem
    Sorry about the misunderstandin g. I tried other lineheingts with no success.

    I double checked the line height and printFont.GetHe ight(e.Graphics ) does return the correct line height. I can see the first line being added to the printing page all the way to the 69th line. The function then sets e.HasMorePages to true and returns to print a new page. The issue is here, for some reason even though PrintPage gets called again it's...
    See more | Go to post

    Leave a comment:


  • Mischief07
    replied to Print Document PrintPage problem
    No this is not the issue. linesPerPage is getting the correct number of lines (69). Even if I hardcode linesPerPage to be 20, I get 20 lines of 2 pages of text overlapped on one page.
    See more | Go to post

    Leave a comment:


  • Mischief07
    started a topic Print Document PrintPage problem

    Print Document PrintPage problem

    I am having an issue with printing a text file that has multiple pages. The file is approx 19 pages but when I call printpage it will print page one and two on the same page with the text overlapping. this happens for page 3 and 4, 5 and 6 etc.

    here is my code for when the print button is pressed

    StreamReader sr is a global variable

    Code:
               
                streamFilename = "PullSummary.txt";
    ...
    See more | Go to post
No activity results to display
Show More
Working...