| View previous topic :: View next topic |
| Author |
Message |
flydragon Member
Joined: 16 Jun 2004 Posts: 6
|
Posted: 16/06/04 08:59 Post subject: TPrintPreview. Doesn't work correctly under NT |
|
|
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**
|
|
| Back to top |
|
 |
Johnny_Bit Moderator
Joined: 15 Jun 2003 Posts: 274
|
Posted: 16/06/04 17:28 Post subject: |
|
|
| 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...
|
|
| Back to top |
|
 |
flydragon Member
Joined: 16 Jun 2004 Posts: 6
|
Posted: 21/06/04 09:29 Post subject: |
|
|
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**
|
|
| Back to top |
|
 |
Johnny_Bit Moderator
Joined: 15 Jun 2003 Posts: 274
|
Posted: 21/06/04 20:44 Post subject: |
|
|
| 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.
|
|
| Back to top |
|
 |
flydragon Member
Joined: 16 Jun 2004 Posts: 6
|
Posted: 22/06/04 12:43 Post subject: |
|
|
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**
|
|
| Back to top |
|
 |
|