Skip to main content

Being able to use the TSFReportMailer for quite some time within Windows, I noticed something odd today which I cannot explain. When using the TSFReportMailer for a report, I notice the generated file of the report has random spaces within the text fields, wich are consistent every time. However, if I generate the report through the GUI, the report is showing the correct format as expected.


The following snippet is from a report that has been generated by TSFReportMailer:

When generating the report directly from the GUI, this problem does not persists:
 

I was wondering what could cause this, since the exact same report is being used within the TSFReportMailer ánd the GUI. The fields in the Crystal Reports file are regular field boxes or text boxes without any conditions or mutations to the text. The datasource (view) is showing the data correctly when querying directly on the database.

What I can find online is that is a known issue with CR SP30 and lower, but I believe we are running the latest version.
https://community.sap.com/t5/technology-q-a/space-added-before-period-or-comma-while-generating-pdf-reports-sp-25/qaq-p/12540301

Thanks in advance for the answers!

Eventually this problem got solved by migrating the Crystal Reports file to DevExpress. The export in using this preferred reporting service does not give any unwanted spaces.

The cause of this is still unclear, but we're happy that using DevExpress is still the best solution for now.  

 


Reply