cancel
Showing results for 
Search instead for 
Did you mean: 

Export long table storie in SAC to PDF

Victorcardona
Explorer
0 Kudos

Hello SAP experts,

I need your help. Currently, I am programming a button to export a story to PDF in SAC. The script for the button is as follows:

ExportToPDF1.setFileName('LibroMayor');
ExportToPDF1.setPageRange([1]);
ExportToPDF1.setPageOrientation(PageOrientation.Portrait);
ExportToPDF1.setPageSize(PageSize.Auto);
ExportToPDF1.exportView();
Contador1 = Contador1 + 1;
Bookmarks.saveBookmark({name: 'LIBROS', isGlobal: true, isDefault: true}, true);

The story includes a long table, and the exported table is missing rows, even when the 'Auto-size' and 'page table vertically' options are enabled.However, when I export the story through the 'File > Export' route, the export works correctly, and the table is exported with all its rows.

 

Victorcardona_0-1712596790649.png

 

Could you please advise me on what I need to include in the button script to export the complete table? Thank you #SAC

William_Yu
Product and Topic Expert
Product and Topic Expert
0 Kudos
Just a bit curious, if you directly use the story export menu instead of script to export, do you still observe missing rows?

Accepted Solutions (0)

Answers (0)