Page 1 of 1

TPrintPreview visualization problems

PostPosted: April 8th, 2005, 10:15 am
by flydragon
Hello!

I loaded into TPrintPreview a very big file rtf
(more than 1000 pages)...

and when I PaintRichText, the result is a rtf code instead a correct document.

Something like:
"{\rtf1\ansi\ansicpg1252\uc1\de..."

At first time I thought that the PlainText property of RichEdit was true, but it was false!

Probably the file is corrupt (I thought), but the file is correct, because if I save it to file from RichEdit and open with WordPad, the document is perfect.

I don't have more ideas...

Did someone ever seen this problem?

Tanks,

^-flydragon-^

ps: 800MHz, 256MB RAM, WinNT

PostPosted: April 17th, 2005, 9:12 pm
by Kambiz
Did you try it with RichPrint demo?

PostPosted: April 18th, 2005, 11:14 am
by flydragon
thanks for your suggestion!

I found the reason of the problem:
the RichEdit.

I don't know why the RichEdit doesn't work correctly in my program or in with my document.
I found a new RichEdit that show me exactly my document correctly into TPrintPreview.

Therefore the TPrintPreview has no one bug! :)

Thanks by the way!

^-flydragon-^