Results 1 to 5 of 5

Thread: PaperBin & Printer.CurrentY problem

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2005
    Location
    Wisconsin
    Posts
    788

    PaperBin & Printer.CurrentY problem

    Code:
    Printer.PaperBin = TraySelect
    This line is causing me problems, but not with the tray. When I add this line to my code it causes this line to err.

    Code:
    Printer.CurrentY = Printer.CurrentY - 200
    What happens is that the next line after the CurrentY reset prints over the previous line.

    I know that I am backing the print up the page with the CurrentY reset, but when I do NOT set the paperbin using the first line of this post everything works out correctly. In addition to this the following pages print out correct either way. Is there some error with the PaperBin property?

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: PaperBin & Printer.CurrentY problem

    You may want to provide us the error description to give us a better view of the problem.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2005
    Location
    Wisconsin
    Posts
    788

    Re: PaperBin & Printer.CurrentY problem

    There is no error code. It prints incorrectly.

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: PaperBin & Printer.CurrentY problem

    what is the value of trayselect? is it a constant?
    what type of printer?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2005
    Location
    Wisconsin
    Posts
    788

    Re: PaperBin & Printer.CurrentY problem

    I found that placing Printer.PaperBin right before the Printer.EndDoc solved my problem. Still do not know why it would screw with the .CurrentY?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width