I am building report system which some part of code looks like this:
xmldoc := LoadXMLDocument(reportPath);
xsldoc := LoadXMLDocument(templatePath);
xmldoc.Node.TransformNode(xsldoc.Node, outputString);
stream := TStringStream.Create(outputString);
richedit.Lines.LoadFromStream(stream);
I am loading xml document and xsl document (which builds my RTF string from XML), and it works very well, but problem is with bitmap picture.
When I'm putting inside my RTF string element which contains bitmap data:
{\pict\wmetafile8\picw15300\pich9000\picwgoal15300\pichgoal9000\picscalex100\picscaley100
89504E470D0A1A0A0000000D49484452000003FC00000258080200000050397AE00000CBA54944415478DAECBDCFAB745B7ADFF75C8107F1386494B64C6CF93642131B0D820DE23409D68FE046A3E80AC26D68E2D644A0A0C41958CA7BDED3111A74C028A0494BA0D04D402D91414390841B9C3... etc.
}
it is ignored by my TRichEdit control (it is not loaded there from my stringstream - stringstream contains elements of picture, i'm sure). When I manually put inside my rtf document code which contains data of picture and open it in WordPad (windows 7) the bitmap is not visible, but when i'm open it in MS Word the picture is visible.
What I did wrong?