Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to print a form 1

Status
Not open for further replies.
Dec 21, 2000
6
US
A form has been created as an .asp It will be filled in, printed and not saved. The problem is...when the form is printed right now, it only prints on about two-thirds of a standard 8.5 by 11 page. I would like it to print on the "whole" page. Should it been done as a report so it can be printed out easily? Could the problem be font-related? Being a new VB user, I need all the help I can get.

Thanks in advance for any and all help!!
Lynne
 
Rob,

>just do: FormName.PrintForm

Actually, I have done the PRINTFORM thing and had the exact same results as Lynne described. The problem seems to occur when I design on my machine at 1280 x 1024, and run the software on a machine set to 800 x 600 or worse.

I have discovered that the actual WIDTH and HEIGHT properties of the form change at runtime according to the display settings of the host machine.

The way I have "solved" the problem is to LOAD but not SHOW the document. That is, I input whatever data I want on some other form, then my program moves the data to my print form, but I never actually have the print form show on the screen.

I'd like to know some other way to beat this problem. It just looks as if there is a maximum size for a window that is some function of the display window size.
 
I would suggest changing the measurment to pixel form, as this is what most priters use...I'm not sure, and I havn't tried it yet, but this most likely will help.. Oh, or you could change it to actual inches (I think that option is available) In which case the OS can't change the actual width and height ;) Don't mind me, I'm just brain storming here.

Rob
 
If u ever didn't get it solved, you can just make your form an MDI child, it then can be as big as it wants on any resolution

*****************************************
May the Code Be With You...[lightsaber]
----------
x50-8 (X Fifty Eigt)
 
I had simular problems when I wanted to learn about using the printer object.

Using the Printer Object is very important as you can deal with the situation virtually manipulate what you want printed. Also using picture boxes I found are really handy for printing purposes as well.

If you want to simply print without saving the image and you want to print the full page, I believe there's a thread in this forum that I got some code for doing just that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top