Programatic Export Page Size
Posted: Mon Aug 16, 2021 8:01 am
Hi,
i'm using the below funciton to programatically export some dashboards to pdf. This is being done by a windows service so there isn't a user interface. When i run the command the export works fine however it makes the resolution or page size very small which squashes up the dashboards. eg the dashboards have a resoltion of 1800 x 900 which looks fine on any monitor, how when render by the export function the elements get all squashed and no longer fit on the page properly. If using the dashboard UI to export it i get an option to specify the page size, but using the calling the function directly it seems to always default to what seems to be A4.
Is there a way to specify the export document size when using the function below?
public StiReport ExportDocument(StiExportFormat exportFormat, Stream stream);
i'm using the below funciton to programatically export some dashboards to pdf. This is being done by a windows service so there isn't a user interface. When i run the command the export works fine however it makes the resolution or page size very small which squashes up the dashboards. eg the dashboards have a resoltion of 1800 x 900 which looks fine on any monitor, how when render by the export function the elements get all squashed and no longer fit on the page properly. If using the dashboard UI to export it i get an option to specify the page size, but using the calling the function directly it seems to always default to what seems to be A4.
Is there a way to specify the export document size when using the function below?
public StiReport ExportDocument(StiExportFormat exportFormat, Stream stream);