Home » U++ Library support » RichText,QTF,RTF... » String EncodeHtml (how to understand the vast majority of parameters of this function?)
String EncodeHtml [message #58732] |
Tue, 09 August 2022 19:57  |
BetoValle
Messages: 204 Registered: September 2020 Location: Brasil Valinhos SP
|
Experienced Member |
|
|
Hi,
it is very difficult for a new programmer to understand how to work with this function. Most of the difficulties I face are because I'm new to C++ and U++, but it really gets harder when the content is written for experts like I believe most who have established themselves here. They should write and think about those who have difficulty, because it is only with simpler examples that there is growth in the adoption of U++ . Sorry but this is a fact!
I'm about to choose the language if java or u++ to transcribe a program (delphi/desktop/windows) to web/linux (tomcat or skylark) where one of the tables has a field where medical patient history is stored, through "rtf" content that contains text , table and image.
I'm thinking of rewriting this field and storing html (or qtf mporting/exporting systematically)
So I need to understand the parameters of the function in reference.
for example with table in the code below
String rtfContent;
rtfContent="{\\rtf1\\ansi\\ansicpg1252\\deff0{\\fonttbl{\\f0\\fnil Calibri;}{\\f1\\fnil\\fcharset0 Arial;}}
{\\colortbl ;\\red0\\green0\\blue0;\\red0\\green0\\blue128;}
\\viewkind4\\uc1\\trowd\\trgaph30\\trleft-30\\clbrdrt\\brdrw15\\brdrs\\clbrdrl\\brdrw15\\brdrs\\clbrdrb\\brdrw15\\brdrs\\clbrdrr\\brdrw15\\brdrs \\cellx647\\clbrdrt\\brdrw15\\brdrs\\clbrdrl\\brdrw15\\brdrs\\clbrdrb\\brdrw15\\brdrs\\clbrdrr\\brdrw15\\brdrs \\cellx1840\\clbrdrt\\brdrw15\\brdrs\\clbrdrl\\brdrw15\\brdrs\\clbrdrb\\brdrw15\\brdrs\\clbrdrr\\brdrw15\\brdrs \\cellx2372\\clbrdrt\\brdrw15\\brdrs\\clbrdrl\\brdrw15\\brdrs\\clbrdrb\\brdrw15\\brdrs\\clbrdrr\\brdrw15\\brdrs \\cellx3644\\clbrdrt\\brdrw15\\brdrs\\clbrdrl\\brdrw15\\brdrs\\clbrdrb\\brdrw15\\brdrs\\clbrdrr\\brdrw15\\brdrs \\cellx4112\\pard\\intbl\\cf1\\lang1046\\f0\\fs22\\cell 14/08/2017\\cell %\\cell 16/12/2019\\cell %\\cell\\row
\\intbl L1\\cell 0,656\\cell 58\\cell 0,684\\cell 69\\cell\\row
\\intbl L2\\cell 0,663\\cell 55\\cell 0,652\\cell 63\\cell\\row
\\intbl L3\\cell 0,602\\cell 50\\cell 0,612\\cell 56\\cell\\row
\\intbl L4\\cell 0,693\\cell 58\\cell 0,609\\cell 57\\cell\\row
\\intbl colo E\\cell 0,719\\cell 69\\cell 0,625\\cell 74\\cell\\row
\\intbl troc\\cell\\cell\\cell 0,555\\cell 75\\cell\\row
\\intbl radio\\cell 0,747\\cell 84\\cell 0,591\\cell 85\\cell\\row
\\pard\\cf2\\b\\f1\\fs16 CD= Manter com Prolia, visto haver ainda risco de fratura.\\par
}";
String result = EncodeHtml( rtfContent , Index<String>& css,
const VectorMap<String, String>& links,
const VectorMap<String, String>& labels,
HtmlObjectSaver& object_saver, Zoom z,
const VectorMap<String, String>& escape);
Cout() << result << EOL;
how to initialize with each of the parameters below to introduce them in the function to return html content?
Index<String>& css,
const VectorMap<String, String>& links,
const VectorMap<String, String>& labels,
HtmlObjectSaver& object_saver,
Zoom z,
const VectorMap<String, String>& escape
Thanks!
|
|
|
Goto Forum:
Current Time: Sun May 11 06:53:19 CEST 2025
Total time taken to generate the page: 0.02753 seconds
|