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

Only one rtf page in TPrintPreview

 
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
henk_struijk
Member


Joined: 26 Oct 2003
Posts: 2

PostPosted: 26/10/03 10:12    Post subject: Only one rtf page in TPrintPreview Reply with quote

A few days ago I dowloaded the Print Preview Suite v4.3. It works very fine (and easy). However, I experience a problem: TPrintPreview always shows only the first page of RichEdit texts.

By debugging the Rich Text Demo I found that this is caused by the function PaintRichText. The parameter Offset is always returned as -1. This means that in the Demo in procedure RenderRichEdit the while loop is only entered once. Hence only one page will be shown.

Is it possible that this problem is caused by a bug in Microsoft's implementation of their RichText common control? If so (or if not), what can I do to get rid of the problem?
Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 202

PostPosted: 26/10/03 11:17    Post subject: Reply with quote

Well, the RichEdit control has problem in rendering embedded objects and page breaks, however this problem no.

Please in the Rich Text Demo, change the page type to A5. In this case, the sample file should be rendered in two pages.

If the problem is with a specific file, it would be nice to have that file to check it out.

Thanks,
Kambiz
Back to top
View user's profile Send e-mail Visit poster's website
henk_struijk
Member


Joined: 26 Oct 2003
Posts: 2

PostPosted: 27/10/03 15:12    Post subject: Reply with quote

Hello Kambiz,

Thank you for your very quick answer!

I followed your suggestion, but it didn't help. I have Delphi 6 on Windows 98 and Delphi 7 on Windows NT (on the same PC). On both platforms only one page of an RTF text is shown in the Preview. I used the sample rtf file, but also other rtf files (e.g. overview.rtf which comes with Delphi's RichEdit demo).

This afternoon I installed Delphi 7 on another PC (with Windows XP). The Preview suite as well of course. And guess... everything works fine. I don't understand why... Do you?

Thanks again,

Henk
Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 202

PostPosted: 27/10/03 23:33    Post subject: Reply with quote

I don't know too. Confused
Back to top
View user's profile Send e-mail Visit poster's website
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

 
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 2.0.6 © 2001, 2002 phpBB Group