table in TPrintPreview

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

table in TPrintPreview

Postby flydragon » March 10th, 2005, 11:32 am

Hello!

I used the TPrintPreview and it's work very well! Well done!

Only one "bug" I found:

I load a RTF with tables in a RichEdit, and here I see correctly the document with the tables, but when I create the preview (with PaintRichText), a visible problem occurrs: the first page doesn't end to the bottom margin, but it continues until the end of the page, and the next page doesn't start from the correct point. In conclusion a piece of document is not rendered in the preview.

I checked the offset returned, and it seems the tables are interpreted to a single row (this is my supposition).

Maybe it could be a problem relating a Win dlls... I don't know..

Any suggestion is welcome.
Thanks a lot!!!

(I use WinXP SP2)

flydragon
flydragon
Active Member
Active Member
 
Posts: 6
Joined: June 16th, 2004, 8:44 am

Postby Kambiz » March 10th, 2005, 2:50 pm

It could be Delphi's RichEdit control bug. I do suggest to use RxRichEdit. Then, to pass the control to the Preview's print method, type cast it to TCustomRichEdit.
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 2 guests

cron