Forum Discussion
Well, SSRS to regular PDF of course is doable with a much less amount of effort than directly accessing the printer. This option can be used with regular Aras report items and you do not have to use code at all.
For your 2nd option: I am not sure about this one, but there is a PrintingToPdf.js in the codetree with these suspicious lines of code:
var screenHeight = 595; //A4 ppt coming from pdf format
var screenWidth = 842; //A4 ppt coming from pdf format
In 11SP15 its located here: ..\Innovator\Client\Modules\aras.innovator.Printing\Scripts\Classes
For starting the print programmatically you maybe can use the code used for the CUI element.
- angela6 years agoCatalyst II
I guess you will need to change Line 133:
var pdfDoc = new JsPDF('l', 'pt', 'a4');
The 1st paramter defines landscape (l) or portrait (p).
It´s a interesting piece of code. I am actually were locking for something similar for a different use case :-)
- paul_sheehy6 years agoIdeator III
//var pdfDoc = new JsPDF('l', 'pt', 'a4');
var pdfDoc = new JsPDF('p','pt','letter');modifying the pdfDoc variable with the above code correctly changed the default form printing orientation from Landscape to Portrait!
This resolves item #2 from my original post. I'm still exploring using SSRS reports to do the rest of this...but I thought other users would like a solution on how to modify Aras to print forms in Portrait orientation by default. Thanks Angela!
paul