Print RichEdit Text

269 views
Skip to first unread message

David Field

unread,
Jul 6, 2022, 12:34:28 PM7/6/22
to Harbour Users
Hello,

Can someone point me in the right direction as to print RichEdit text?

If I use normal printing, from this:
Esto está en negritas Arial
Esto esta con fuente normal

I get this:
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\fnil\fcharset0 Arial Black;}{\f1\fnil\fcharset0 Calibri;}{\f2\fnil Arial;}}
{\colortbl ;\red0\green0\blue0;}
{\*\generator Riched20 10.0.19041}\viewkind4\uc1
\pard\cf1\f0\fs18 Esto est\'e1 en negritas Arial\par
\f1 Esto esta con fuente normal\f2\par
\par
\par
}

Regards,
David Field

Antonio Linares

unread,
Jul 7, 2022, 5:07:02 AM7/7/22
to Harbour Users
Dear David,

We have recently included in FWH for Harbour/xHarbour the ability to print richedit text

If you need tech details please contact me on alin...@fivetechsoft.com

best regards

Itamar Lins

unread,
Jul 8, 2022, 3:36:46 PM7/8/22
to Harbour Users
Hi!
Screenshot_20220708_163537.pngUse Hwgui.Screenshot_20220708_163335.png

Best regards,
Itamar M. Lins Jr.

Auge & Ohr

unread,
Jul 8, 2022, 4:51:48 PM7/8/22
to Harbour Users
hi

under HMG use a RICHEDITBOX an than  

   <FormName>.<ControlName>.RTFPrint ( { nMinPos, nMaxPos } , nLeft , nTop , nRight , nBottom , PrintPageCodeBlock )

Demo Sample
c:\hmg\SAMPLES\Controls\RichEditBox\demo.prg

Jimmy

David Field

unread,
Jul 11, 2022, 11:36:32 AM7/11/22
to Harbour Users
Thanks you to all.

Regards,
David Field

Reply all
Reply to author
Forward
0 new messages