11-09-2021 11:54 AM
One of our tests generates a couple images, and we want to embed those in the report. We also select the "save to PDF" option.
I have been able to embed the images in the PDF by casting them to their binary strings and writing that to the Report Text field.
However, this also seems to log that data to the database, and this we don't want to do.
Obviously we could go back to the XML + Stylesheet model, but this tends to be a pain in the neck for sharing the reports.
I suppose another way would be to get a different PDF generator, one that would include the images... but I figured I would ask here first.
11-09-2021 01:15 PM
Hi,
One possible approach is to create a copy of the database schema in which you add a precondition for REPORT_TEXT column/parameter to avoid logging it to the database.
Regards,
Anand Jain
NI
11-09-2021 02:43 PM
I'm not sure I understand. This is a pre-condition in the database schema that would ignore an insert/update to that field based on the size of the data being inserted?
I did not use stored procedures for our schema, but I can see how to do that with SPs. I don't know how to do that with simple inserts (MS SQL).
I am not familiar with how TS uses the schema to insert data into the database- is there a way to mod the schema TS is referencing to skip the insert for that one test?