Using RunReport to pdf makes ugly pdf
Kristaps Žogots
10-7-22
Operating system: macOS
Linux server. If we execute following code (it runs Profit & Loss report to pdf file):

ReportDefaults(RepSpec,"ResRClass");
RepSpec.repname = "ResRn";
RepSpec.Media = mtPdf;
RunReport(RepSpec,0);

it will end up with a different format (bad looking - wrong fonts, no left margin) comparing to what you would get if you run the report from client with Media type Pdf.

The only big difference that I see is that running to media from rep. specification window is using the client, but my example code runs on server.

The question is: is it possible to run the report to pdf from HAL on server and get a good looking pdf (as if we create it from rep. specification window media pdf)?
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
Gastón Salomone
Hi, I cannot find any information on about this feature on hansamanual. That is the purpose, is it working, how it works or how must be configured to work ? For REST API many web request per...
23:47 3 Oct 2024
Paul Timms
Thanks Bror-Erik, it's hard to replicate so we won't know for sure until we upgrade the customer with this issue....
10:37 30 Sep 2024