Book a Demo

Author Topic: Parsing RichText from Add-in to report generator  (Read 2898 times)

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Parsing RichText from Add-in to report generator
« on: September 14, 2011, 10:18:33 pm »
Hi,

my last ideas for my report generator is nearly finished, i just got ( at least for the reporting part) only one minor question:

i want to create an overview about all baselines from my package and get them out with:

String q = Repo.SQLQuery("SELECT Version, Notes,Docdate, Author  FROM `t_document` WHERE `DocType` = 'Baseline' AND DocName LIKE \"" + DocName + "\" Order by Version desc");

no problem so far.

i want to make them richtext-conform with

  sb.AppendLine("\\\\trowd");
                    sb.Append("\\\\cellx1500\\\\cellx4000\\\\cellx5500\\\\cellx9500\\");
                    sb.Append(MakeString(xRow.Element("Docdate").Value));
                    sb.Append("\\\\cell");
                    sb.Append(MakeString(xRow.Element("Version").Value));
                    sb.Append("\\\\cell");
                    sb.Append(MakeString(xRow.Element("Author").Value));
                    sb.Append("\\\\cell");
                    sb.Append(MakeString(xRow.Element("Notes").Value));
                    sb.Append("\\\\cell");

                    sb.Append("\\\\row");
                    sb.AppendLine();

then i want to load them into an project constant called history with the normal sql update procedure.

My problem is now:

SQLquery, extracting and parsing it into constant is working, BUT i haven't a useable table in my template but i got all the entered baselines.

any idea, how i can get the RichText into correct form and get the internat generator to work with the string of the project constant as interpretation?

thank you!
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website