|
-
Feb 22nd, 2002, 10:37 PM
#1
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
-
Feb 23rd, 2002, 09:19 AM
#2
Short, sweet, simple and not the least bit fancy, but it will work.
VB Code:
Printer.Print Text1.Text
Printer.EndDoc
-
Feb 23rd, 2002, 12:44 PM
#3
Can I set a margin of the paper? It prints right from the top.
Thanks
-
Feb 23rd, 2002, 01:46 PM
#4
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|