ReportBuilder 22.05, TRichView and table problem

General TRichView support forum. Please post your questions here
Post Reply
GoranBru
Posts: 23
Joined: Wed Jan 22, 2020 2:26 pm

ReportBuilder 22.05, TRichView and table problem

Post by GoranBru »

Hi,
I have interesting problem for which I can't find the solution. In our big application for medical offices we use components from DevExpress, ReportBuilder, TRichView+TScaleRichView and a few others. One of the features in our application is that the doctors can write down medical exams and other documents for which we use TScaleRichView, at the moment it is version 12.3 with TRichView 22.4. The document can be printed, stored in the database, etc. For printing we use ReportBuilder with dedicated RTM template. Basically it has a couple of groups, some data in those groups like patient data (using classic components), while the text is in DBRichView component.

Everything is fine as long as they use normal text. As soon as they insert table the problems arise. The preview looks just fine except that the right edge is invisible if the table is 100% wide. But okay, this can be solved with slight correction in the text. If I export the report to PDF in print preview, the table is mangled, even the text after the table. There is only 50% of table width visible, the text in the first cell in top left is 25% of size (the rest is okay). The text in the next paragraph is only 50% of width and few lines.

If I print the document on some normal printer (e.g. HP LaserJet 5800), the printout is as it is in print preview. If I use "MS Print to PDF" printer, I can't open the PDF. I tried to export to JPG and PNG, similar weird things happen. At least export to DOCX looks much more closer to the preview.

I asked on Digital Metaphor's forum and according to Nico Cizik's advice I have created a small demo application where I tried to load same RTF file (made in our main application) and print it using RB TppDBRichText and Yours TppDBRichView component. With first the table was exported quite okay (except that the first row was moved slightly to the left), while in the other case the problem was successfully recreated.

Can You help me here please? I am attaching the demo project with test RTM's and the RTF file to test.

Best regards,
Goran
Attachments
RB_PrintPreview.zip
(76.99 KiB) Downloaded 242 times
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: ReportBuilder 22.05, TRichView and table problem

Post by Sergey Tkachenko »

The problem with drawing tables and underlines in PDF export in new version of ReportBuilder was already reported.

Digital Metaphors sent a patch for me. I did not check it myself, thought.
I'll send it to you by email.
Post Reply