Results 1 to 4 of 4

Thread: Why SDI form does't print completely when partially not shown on screen?

  1. #1

    Thread Starter
    New Member danisa's Avatar
    Join Date
    Aug 2008
    Posts
    13

    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
    To hope for a propper answer is to ask a propper question first!
    Don't forget to mark [Resolved] your tread once you get your answer/s!

  2. #2
    Frenzied Member longwolf's Avatar
    Join Date
    Oct 2002
    Posts
    1,343

    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

  3. #3

  4. #4

    Thread Starter
    New Member danisa's Avatar
    Join Date
    Aug 2008
    Posts
    13

    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?
    Last edited by danisa; Sep 30th, 2008 at 04:54 AM.
    To hope for a propper answer is to ask a propper question first!
    Don't forget to mark [Resolved] your tread once you get your answer/s!

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