DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   Watched TopicsWatched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TPrintPreview. Doesn't work correctly under NT

 
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
flydragon
Member


Joined: 16 Jun 2004
Posts: 6

PostPosted: 16/06/04 08:59    Post subject: TPrintPreview. Doesn't work correctly under NT Reply with quote

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
View user's profile Send private message
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 274

PostPosted: 16/06/04 17:28    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
flydragon
Member


Joined: 16 Jun 2004
Posts: 6

PostPosted: 21/06/04 09:29    Post subject: Reply with quote

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
View user's profile Send private message
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 274

PostPosted: 21/06/04 20:44    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
flydragon
Member


Joined: 16 Jun 2004
Posts: 6

PostPosted: 22/06/04 12:43    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

Add to favorites

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group