$O 817 - How to print an Rtf File/Text...
Michael Mantkowski
michaelj at clientrax.com
Wed Aug 28 07:19:11 EDT 2019
Hi Massimo,
I have tried your library in Omnis 10 and can duplicate your issue.
I was able to get your test document to print if I select its path in the custom properties of the RTF Viewer in your report so that might be an option for you.
I will check it against my application when I get into the office a little later today.
*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************
-----Original Message-----
From: omnisdev-en On Behalf Of Massimo Boschini
Sent: Wednesday, August 28, 2019 4:36 AM
To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
Subject: Re: $O 817 - How to print an Rtf File/Text...
Hi Michael,
thank you for the answer, but still do not works… I’ve made a simple library for testing, if you want you can download from the link below and test on O$ 817, it print a blank page. I haven’t test from older version of Omnis… Into the folder there is a simple RTF file for testing...
What I am doing of wrong???
Thank you,
Massimo.
Library link: http://www.softwareconsult.it/RTF_Test.zip <http://www.softwareconsult.it/RTF_Test.zip>
> Il giorno 27 ago 2019, alle ore 20:49, Michael Mantkowski <michaelj at clientrax.com> ha scritto:
>
> Like you I have an RTF object on the Record Section along with other objects as needed. Then I do something like this in the $print method of the record section. Really only making the proper object visible for the type of text I am printing. Seems to work ok. But there is a issues with certain fonts and the alignment with the Omnis RTF component in 4.3.2.1.
>
> If mid(#S5,1,5)='{\rtf'
> ; RTF Data
> If lvTextObj=1
> ; Use Omnis RTF Viewer
> Calculate $cinst.$objs.RTF.$visible as kTrue Else If
> mid(#S5,1,6)='<html>'
> Calculate $cinst.$objs.HTML.$visible as kTrue Else
> Calculate $cinst.$objs.TEXT.$visible as kTrue End If
>
> *********************************************************************
> Michael Mantkowski
> ClienTrax Software
> 1-614-875-2245
> *********************************************************************
>
>
> -----Original Message-----
> From: omnisdev-en On Behalf Of Massimo Boschini
> Sent: Tuesday, August 27, 2019 2:24 PM
> To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
> Subject: $O 817 - How to print an Rtf File/Text...
>
> Hi to all,
>
> I need your help, I have posted a similar question month ago, with no
> results…
>
> As the subject, I have to print in a report an Rtf content (no differences if it is from file or from text field, it’s simple to convert rtf text field to a file and vice versa…). I have inserted the Rtf Component in the record section of a simple report for testing, but it still not working. Omnis hang (Mac version, I haven’t tested the Windows version yet...) when I set programmatically the $filename property and I have a white page when I use a Text Field in $dataname...
> Is there someone that can help me with an example of Rtf printing?
>
> Thank you in advance and best regards, Massimo.
>
>
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com Start a
> new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list