TPrintPreview. Doesn't work correctly under NT
Select messages from
# through # FAQ
[/[Print]\]

DELPHI AREA -> DELPHI AREA's Products

#1: TPrintPreview. Doesn't work correctly under NT Author: flydragon PostPosted: 16/06/04 08:59
    —
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**

#2:  Author: Johnny_Bit PostPosted: 16/06/04 17:28
    —
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...

#3:  Author: flydragon PostPosted: 21/06/04 09:29
    —
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**

#4:  Author: Johnny_Bit PostPosted: 21/06/04 20:44
    —
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.

#5:  Author: flydragon PostPosted: 22/06/04 12:43
    —
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**



DELPHI AREA -> DELPHI AREA's Products


output generated using printer-friendly topic mod. All times are GMT

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group