Hi,
I am converting excel to PDF . I want 8 columns in a page .I am using below code to achieve this.
pageSetup.setFitToPagesTall(0);
if(noOfColumns>8)
{
int remainder=noOfColumns%8;
int setNoOfPages=noOfColumns/8;
if(remainder>0)
{
setNoOfPages=setNoOfPages+ONE;
}
pageSetup.setFitToPagesWide(setNoOfPages);
}
Ex:- When noOfColumns=199 then setNoOfPages=25 so report should be generated in 25 pages each should have 8 columns and last one should b 7 columns . But in the report it is generating randomly please find the attached report and also I want the data should be visible properly with out adjusting the zoom.
Please suggest me.