JD
Hello,
I created a report which reads the model attributes and adds it to a table in word, pdf or excel. Is it possible to change the page format (like A0-A4) and the orientation in the report depending on how many attributes are selected to show in the file?
Best regards.
Hello,
I do it in all my reports for my customers.
Depending the attribute value of the model, I define the page in A0, A3, A4, landscape or portrait :
//Here I start a new section ofl.BeginSection(true, Constants.SECTION_DEFAULT); //Here I define the format of the page ofl.SetPageWidth(this.formatWidthHeight[0]);//Width ofl.SetPageHeight(this.formatWidthHeight[1]);//Height //the following funciton print the model on the output file printModel(ofl, this.model); ofl.EndSection();
Best Regards.