Sign In  Sign Up Live-Chat

groupcolumn not working as expected.

Last post 07-07-2008, 9:47 AM by Rajavardhan. 5 replies.
Sort Posts: Previous Next
  •  07-03-2008, 11:01 AM 134206

    groupcolumn not working as expected.

    Hi,

    1) Im trying to do group columns into 3 different groups. But it groups all columns as single rather then 3 group. (We are using java cells)

    Cells cells = getSheet(sheetName).getCells();

    cells.groupColumns(3, 7); // group one

    cells.groupColumns(8, 12); // group two

    cells.groupColumns(13, 17); // group three

    2) How to set Zoom to 75%. The below code not working.

    PageSetup pagesetup = getSheet(sheetName).getPageSetup();

    pagesetup.setZoom(75);

     

    Regards

    Raj

     
  •  07-03-2008, 12:38 PM 134221 in reply to 134206

    Re: groupcolumn not working as expected.

    Hi Raj,

    Thanks for pointing it out,

    We found both the issues and will figure it out soon.

    Thank you.


    Amjad Sahi
    Support Developer,
    Aspose Nanjing Team
    Contact Us
     
  •  07-03-2008, 1:57 PM 134236 in reply to 134221

    Re: groupcolumn not working as expected.

    Hi,

    Please update after issue resolved.  We need this fix soon.

    We have Aspose Cells  licence. If u need any thing we provide.

     

    Regards

    Raj

     
  •  07-03-2008, 9:30 PM 134279 in reply to 134236

    Re: groupcolumn not working as expected.

    Hi Raj,

      For the group function, Aspose does just same with MS Excel, when you group columns, if they are adjacent, MS Excel will union them as one single group too. If you can achieve 3 groups in MS Excel, please show us your Excel file and we will check it soon, thank you.

      For the pagesetup, which version of Aspose.Cells for Java are you using? Would you please try our latest version 1.9.5 at download page? I have test it with following code and the generated worksheet does show its pagesetup as being zoomed 75%:

             Workbook wb = new Workbook();
             wb.getWorksheets().getSheet(0).getPageSetup().setZoom(75);
             wb.save("ttt.xls");

     


    Johnson Shi
    Developer
    Aspose Nanjing Team
    About Us
    Contact Us
     
  •  07-04-2008, 1:45 AM 134294 in reply to 134279

    Re: groupcolumn not working as expected.

    Hi Raj,

    For zooming a worksheet, kindly use Worksheet.setZoom() method. I think you and I wrongly thought about the API, PageSetup.setZoom() actually affects the scalling factor...In MS Excel Click File|PageSetup...in the PageSetup dialog click Page tab and check the scalling section.

    So you may change the code as follows:

    ...............

    Worksheets worksheets = workbook.getWorksheets();

    Worksheet worksheet = worksheets.getSheet(0);

    worksheet.setZoom(75);

     

    And for Grouping Cols issue, Johnson is rightly saying, I never thought MS Excel also create a single group for adjacent columns. And we generally follow the MS Excel standards.

    Have a good day!

    Thank you.


    Amjad Sahi
    Support Developer,
    Aspose Nanjing Team
    Contact Us
     
  •  07-07-2008, 9:47 AM 134553 in reply to 134294

    Re: groupcolumn not working as expected.

    Thanks! It works fine.

     

    Regards

    Raj

     
View as RSS news feed in XML