The text appears in the normal screen controller but does not appear in the report.
I already use this RFT in the report for years, but this happened with a pasted text.
What I don’t understand is the text being decoded on the screen and not decoded in the report.
Can anyone help me?
Thanks.
Follow images
Hello, I’m going to post in English, so maybe someone can help us…?
I couldn’t, but I managed to find out that they are texts that come from a Mac. It seems that the encoding changes the RTF header, so in the report the RTF text controller is bugged.
As you can see, no one answered me here, the solution was to ask the client, in this case, not to bring it directly from the Mac.
If I find a solution, I’ve already noted your contact, I’ll send it to you, but if you find something, please send it to me too.
Big hug
Hello, RchdR thank you very much for your contribution, but it is the report() control that does not handle the code, and consequently it does not appear in the PDF.
Best regards
it appears there is something amiss with the header?
could you please post a text file with the exact bytes used for your original image post. I am curious if it is ANSI or Unicode etc. Does it have a BOM (Byte Order Mark)?
so you need to look at the exact source text to spot what is different in this case. (So please also supply one text file that works fine for comparison). Maybe you can then do some text transformation to get it in a format that displays correctly both on screen and report.
Thats also my point, there is a difference between the window control and the report.
The source code for writing pdfs is shipped with clarion if you want to take a look at it. Its one way of learning how to build a pdf. C6 is the version the source was shipped in iirc but in later versions pdfs became image files in reports to afford a small degree of privacy from software that can harvest data from pdf’s.
Edit. Just ignore me, I could have sworn your earlier post said printing to PDF but now I cant see it…
Hello good evening,
You always have good solutions, I already appreciate your post!
I think I didn’t express myself well when I mentioned the RTF header.
The problem is exactly what is the image at the beginning of the post.
The user copies a text that apparently came from a Mac.
When pasting the text into the RTF controller of a window, the text is complete.
But when generating a report(), the RTF text controller can’t handle the text.
The texts are copied from several places, the example above is part of a text that a client of mine pasted and there was a problem in the report.
I really only posted one paragraph because it is enough for us to see the problem between the window and report controllers.
Hello friend, please forgive me
I edited the answer, I had actually included the PDF,
but this problem is not in the PDF
it is in the RTF Text controller of report().
in the image at the beginning of the post.
This is an example of the beginning of RTF text that the report controller reads:
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1046{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}} …
And this is what it doesn’t read…
{*\generator Riched20 10.0.22000}\viewkind4\uc1
\b\f\qc1\fonttbl {\f0\fnil\fcharset0 Cambria;}} …
That’s why I called it a header, and said that this could be a difference.
Hello, good morning!
Thank you for your post!
I’m using Clarion 11, and I found the option you mentioned
I’ll try to use it and get back to you with the results
Thank you very much.
Hi vitesse!
Thanks for your post!
But they are different, see: The one generated by Clarion’s RTF {\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1046{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}} The one imported by external text, I believe, from a Mac {\rtf1\fbidis\ansi\ansicpg1252\deff0\nouicompat\deflang1046{\fonttbl{\f0\fnil\fcharset0 Cambria;}}
The difference is
Clarion {\rtf1\ansi\...
external {\rtf1\fbidis\ansi...
But the intriguing thing is that the window controller resolves it, but the report controller does not.
The same paragraph used at the beginning of the post, but typed directly into Clarion’s RTF windows controller, and the report preview if its RTF controller:
RTF code text: {\rtf1\fbidis\ansi\ansicpg1252\deff0\nouicompat\deflang1046{\fonttbl{\f0\fnil\fcharset0 Cambria;}{\f1\fnil Cambria;}} {\*\generator Riched20 10.0.22621}\viewkind4\uc1 \pard\qc\b\f0\fs24\lang22 ULTRASSOM ABDOMINAL - 02\par \pard\qj\par \par VESI\u769?CULA URINA\u769?RIA- \b0 Vesi\u769?cula urina\u769?ria com replec\u807?``a\u771?o adequada, paredes regulares enormoespessas, medindo (0,09 cm), comconteu\u769?do anecoge\u770?nico. Presen\f1\rquote\f0 e7a de estruturashiperecog\f1\rquote\f0 eanicas em topografiade colo vesical, formadoras de sombreamentoac\f1\rquote\f0 fastico, medindo (entre 0,09 cm e 0,15 cm). Considerar a possibilidade decristais/ microc'e1lculos. \par \b\par }
Then…
I made a non-RTF controller to get the clean codes, and edited the text so that the report controller can read the options \fbidis\ \*\generator
I changed the report to Use Scan Copy Mode?
None of the options helped.
Mystery indeed.