Results 1 to 4 of 4

Thread: Printing Help

  1. #1
    747
    Guest

    Printing Help

    Can I print only textboxes on the form? Actually I want to print an invoice and it does not have to be fancy and all. I am using CR for other printing in my project.

    Please give me an idea how can I do this?

    Thanks in advance

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Short, sweet, simple and not the least bit fancy, but it will work.
    VB Code:
    1. Printer.Print Text1.Text
    2. Printer.EndDoc

  3. #3
    747
    Guest
    Can I set a margin of the paper? It prints right from the top.

    Thanks

  4. #4
    Fanatic Member
    Join Date
    Feb 2001
    Posts
    759
    HI 747,

    You can set the margin of the printer object by using the Printer.CurrentX and Printer.CurrentY functions. The top left corner of the paper is:

    Printer.CurrentX = 0
    Printer.CurrentY = 0

    If you want to print at a 1" margin (top of page and left hand side) set Printer.CurrentX = 1440, Printer.CurrentY = 1440.

    Hope this helps.

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