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
Printable View
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
Short, sweet, simple and not the least bit fancy, but it will work. :)VB Code:
Printer.Print Text1.Text Printer.EndDoc
Can I set a margin of the paper? It prints right from the top.
Thanks
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.