Search found 20 matches

by ThYpHoOn
Wed Jul 06, 2011 2:25 pm
Forum: Support
Topic: Printed bold rtf text is colored blue
Replies: 5
Views: 24787

Directly with a Stream (LoadRTFStream) This is the rtf: {\rtf1\ansi\ansicpg0\uc1\deff0\deflang0\deflangfe0\paperw11906\paperh16838\margl1800\margr1800\margt1440\margb1440\viewscale100\viewzk0 {\fonttbl{\f0\fnil Arial;}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0 ...
by ThYpHoOn
Wed Jul 06, 2011 1:04 pm
Forum: Support
Topic: Printed bold rtf text is colored blue
Replies: 5
Views: 24787

Printed bold rtf text is colored blue

Hi,

if i'm formatting a rtf-text bold it's printed in the color blue. I've used the TQRRichView (rvqrCtrls) component to print it in a quickreport. If i'm formatting a rtf-text italic it's printed red.
Thats realy confusing...
Image

Greetings, ThY
by ThYpHoOn
Thu Mar 24, 2011 2:05 pm
Forum: Support
Topic: Height of a Row/Paragraph to calculate for printing
Replies: 7
Views: 22077

Sergey Tkachenko wrote: Besides, TRVReportHelper can save text in a page in RVF format: rvh.SavePageAsRVF(Stream, PageNo).
Yeah thats exactly what i want, is there any important difference between RVF/RTF or could i load the RVF simple to a TRichView and load there the rtf text?


Greetz, ThY
by ThYpHoOn
Thu Mar 24, 2011 1:11 pm
Forum: Support
Topic: Height of a Row/Paragraph to calculate for printing
Replies: 7
Views: 22077

Which function should i use for the RTF-Text that didn't fit on the first page?
I've got the ItemNo and offset with

Code: Select all

rvh.GetFirstItemOnPage(2,nItemNo,nOffset);
But how could i use this information to get the rtf-text at this point?
by ThYpHoOn
Wed Mar 23, 2011 3:02 pm
Forum: Support
Topic: Height of a Row/Paragraph to calculate for printing
Replies: 7
Views: 22077

Thanks Sergey, this looks good. Where could i get the carret-position if it not fit into one page? Here is an snip of my code: function CalcRTFText (const cRTF:String; const nHeight:Integer; const nWidth:Integer; var nPos:Integer):String; var rvh : TRVReportHelper; oStream : TStringStream; begin rvh ...
by ThYpHoOn
Wed Mar 23, 2011 10:12 am
Forum: Support
Topic: Height of a Row/Paragraph to calculate for printing
Replies: 7
Views: 22077

Height of a Row/Paragraph to calculate for printing

Hi folks, i'm experimenting some methods to calculate the rtf text height for printing and cutting the rtf for a pagebreak to the next page. Example: I'm having a rectangle of 150px * 50px on page 1 and a random rtf text which should be printed in the rectangle, but if the height is higher than 50px ...
by ThYpHoOn
Thu Mar 10, 2011 8:21 am
Forum: Support
Topic: GetAllText WordWrap Returns?
Replies: 9
Views: 28684

? GetFormattedText, like GetAllText, returns a plain text. The only differences - GetFormattedText adds more line break characters in places of line wrapping; - GetFormattedText does not include text representation of non-text items (except for tabs and tables) Uh, sorry there was a mistake/bug in ...
by ThYpHoOn
Tue Mar 08, 2011 3:23 pm
Forum: Support
Topic: GetAllText WordWrap Returns?
Replies: 9
Views: 28684

The result of GetAllText is completely unformatted and non-rtf, but the function "GetFormattedText" give's the RTF-Formatted text as a result.

Gz, ThYpHoOn
by ThYpHoOn
Tue Mar 08, 2011 11:58 am
Forum: Support
Topic: GetAllText WordWrap Returns?
Replies: 9
Views: 28684

A little note on this, GetAllText has converted the text (if it was RichEdit) to plaintext, but the new function did not do this. Any idea for this?

This isn't so bad, i could check the text if its RichText... but if there is a easy tweak for this i'm glad to hear from it.


Gz, ThYpHoOn
by ThYpHoOn
Mon Mar 07, 2011 8:07 am
Forum: Support
Topic: GetAllText WordWrap Returns?
Replies: 9
Views: 28684

Thanks alot, this works fine :)

Gz, ThYpHoOn
by ThYpHoOn
Thu Mar 03, 2011 8:04 am
Forum: Support
Topic: GetAllText WordWrap Returns?
Replies: 9
Views: 28684

Sergey Tkachenko wrote:All TRichView text exporting functions ignore line wrapping, the inserts #13#10 only in places of paragraph breaks.
I'll post a function with line wrapping tomorrow.
Thanks for the quick answer and for the solution, i'm waiting :)


Gz, ThYpHoOn
by ThYpHoOn
Wed Mar 02, 2011 3:20 pm
Forum: Support
Topic: GetAllText WordWrap Returns?
Replies: 9
Views: 28684

GetAllText WordWrap Returns?

Hi folks, i've a problem with the GetAllText function if i want only the plain-text of a document. If i'm tipping a long text with the property wordwrap = true then ther will be carriage return(line feeds)'s shown but if i'm getting the text with GetAllText they won't be exportet. Is there a clue to ...
by ThYpHoOn
Wed Aug 25, 2010 6:50 am
Forum: ScaleRichView
Topic: Two strange things
Replies: 1
Views: 16850

Two strange things

Hey folks, i've found two strange bugs by implementing Scalerichview in my program. First thing is a space insertion on typing "111111111111111" (only the number one as character). Is looks like that: http://img651.imageshack.us/img651/2268/no1a.th.jpg The second thing is a ScaleRichviewEdit ...
by ThYpHoOn
Thu Aug 12, 2010 8:52 am
Forum: Support
Topic: TRV -> QRP -> PDF
Replies: 3
Views: 22660

Yes, thanks for the info, we have bought the gnostice component to export in better qualitiy and more formats and this works now fine.
And of course we have used the discount ;)
by ThYpHoOn
Fri Aug 06, 2010 7:50 am
Forum: Support
Topic: \r\n as Linebreak, carriage return line feed?
Replies: 1
Views: 9282

\r\n as Linebreak, carriage return line feed?

Hello,

if i'm exporting Plain Text from a TRichViewEdit the LineBreaks gone away and are not replaced, they are still "\r\n". Is there a option to fix this?