Why SDI form does't print completely when partially not shown on screen?
Hi everybody,
I have this puzzeling problem:
I have a SDI Form that prints OK when displayed on my screen. 1280/1024 pix
When i turn the resolution down to 800/600 the form is cut at the bottom, which I understand, but it will only Print the part that is diplayed on the screen ( i.e. not more than 800/600 pix)
I need to use this form on my old laptop...
Can anyone give on idea how to make it print in whole ?
The form has some text, controls and some shapes on it which I "should not" move or resize.
May be I should try using scroll bars?
Thanks in advance & please help.
Danisa
Re: Why SDI form does't print completely when partially not shown on screen?
If the program is printing directly to the form, that could explain it.
If so, I'd try two things.
1. Set the forms autoredraw to true.
if that doesn't work,
2. have the program use a textbox instead of printing to the form. You may have to change the 'Print' code
1 Attachment(s)
Re: Why SDI form does't print completely when partially not shown on screen?
This should work although I didn't test it in your situation.
Re: Why SDI form does't print completely when partially not shown on screen?
Thanks guys,
The forms is Autoredraw=true
The Project1 didn't work. I mean it works but it still prints only to the height of the screen. it cuts the bottom part.
I should have explained before:
I'm using Win98SE on the laptop and a USB laser printer.
I'm using MS CommonDialog and formName.PrintForm
I'll try with the Textbox but right at the bottom of the form I have some "shapes" that I don't want to lose.
Any other ideas will be highly appreciated. I have to get this succer to print properly.
Thanks
danisa
Edit:
This is getting weird! I've tried with a Textbox...
The first time when it prints it cuts the form to the screen size.
When I print it again (second time) it prints the whole thing!
Looking at the file sizes sent to the Printer: the first one is much smaller than the second!
What is going on?