Page 1 of 1

TPrintPreview. Doesn't work correctly under NT

PostPosted: June 16th, 2004, 8:59 am
by flydragon
Hi! I'm new here.

I've made a little program using TPrintPreview.
This program works correctly on WinXP, but not under NT.

In the preview (on NT) the pages are not complete.
In a first time, i thought that the page resolution was wrong, but the resolution is correct.
The same program, with the same document, under NT doesn't print correctly. The pages are printed without the bottom part.

If someone can help me, thanks...

Thanks for your time.

**flydragon**

PostPosted: June 16th, 2004, 5:28 pm
by Johnny_Bit
That's Weird... in my program, that uses print preview everything's ok under Win NT 4.0 SP 6, Win 2000 SP 3 and Win XP SP 1, Also it works on Win 98 SE and Win 95 OSR 2 without any problem with print/printpreview. Maybe it's or window version fault, or your code...

PostPosted: June 21st, 2004, 9:29 am
by flydragon
I know, maybe my code is wrong, but the same code works correctly under XP.
I think the problem could be caused by DLLs and Windows graphic libraries (wingdi, etc...). It is possible?
However my NT is 4.0 SP 6; it should works correctly... boh..?

Thanks a lot for your answers.. thanks!!

**flydragon**

PostPosted: June 21st, 2004, 8:44 pm
by Johnny_Bit
Small tip: If General demo works, and your application not, than it's your fault, else it's Windows or PrintPreview fault. try (if possible) compile your program under NT 4.

PostPosted: June 22nd, 2004, 12:43 pm
by flydragon
WOW! now anything works correctly...
I found the bug: richedit20.dll and richedit32.dll.
I monitored the executable program, and I saw that it calls this two dlls.
I copied the files from Xp to Nt... and magically everything is right.
thanks for your time...

bye!!

**flydragon**