How to insert page break end of each table in Docx

2018-08-07 Thread venkatesh
i am trying to insert page break end of end page, but my code is not working XWPFDocument doc = new XWPFDocument(OPCPackage.open(filePath)); int count =0; List tables = doc.getTables(); for (XW

Re: Get the validation list for a cell

2009-05-12 Thread Venkatesh Sangam
I am using POI 3.5. I have a validation list defined for a cell in excel. Using my java program, can I validate if a given string exists in the list ? Thanks,Venkatesh

Apache POI -Protected sheet disables the Row/Column resize

2011-02-03 Thread Mamatha Kodigehalli Venkatesh
Hello, While working with Apache POI ( XSSFWorkbook / HSSFWorkbook ) Also I have set sheet.autoSizeColumn(i); I am using sheet.protectSheet(""), after applying this the excel columns or a rows cannot be resized in terms of their width. Please let me know how to solve this problem. T

RE: Apache POI -Protected sheet disables the Row/Column resize

2011-02-04 Thread Mamatha Kodigehalli Venkatesh
Basically my requirement is I need to create few read-only columns and at the same allow user to resize the columns/rows to allow usability of excel. I have pasted my code below: package com.ventyx.ltk.report; import

Formula Support in Apache POI

2011-02-07 Thread Mamatha Kodigehalli Venkatesh
Hello, I need to provide Validation and enable formula support for few columns in the excel sheet. Sample data in a excel col1 col2 col3 6apple 5 1> When user types in say col2, I need to automatically update the col3 with the length of the data that wi

RE: Apache POI -Protected sheet disables the Row/Column resize

2011-02-08 Thread Mamatha Kodigehalli Venkatesh
Appreciate any suggestions/help on this. -Original Message- From: Mamatha Kodigehalli Venkatesh [mailto:mamatha.venkat...@ness.com] Sent: Friday, February 04, 2011 3:29 PM To: POI Users List Subject: RE: Apache POI -Protected sheet disables the Row/Column resize Basically my requirement

RE: Apache POI -Protected sheet disables the Row/Column resize

2011-02-10 Thread Mamatha Kodigehalli Venkatesh
I tried lockFormatColumns() and enableLocking() methods on the XSSFSheet object, after setting the cellstyle as the code that I had posted last, but I still I find that unlocked columns cannot be resized. -Mamatha -Original Message- From: Mark Beardsley [mailto:markbrd...@tiscali.co.uk

RE: Apache POI -Protected sheet disables the Row/Column resize

2011-02-10 Thread Mamatha Kodigehalli Venkatesh
Hello Mark, Microsoft excel also does not allow to resize the columns if the workbook is password protected. I was wondering if there is any way in POI just makes the column alone read-only without making the sheet protected. Thanks Mamatha -Original Message- From: Mark B

RE: Apache POI -Protected sheet disables the Row/Column resize

2011-02-11 Thread Mamatha Kodigehalli Venkatesh
It does not allow resizing of any columns those that may be read only and also those that are not, since we are protecting the sheet. Even I think it is better to accept excel behavior. Thanks again Mark Mamatha -Original Message- From: Mark Beardsley [mailto:markbrd...@tiscali.co.uk] S

Support for HSSF(.xls) in BigGridDemo

2011-03-04 Thread Mamatha Kodigehalli Venkatesh
Hello, I was able to use BigGridDemo for creating .xlsx using XSSF I want HSSF support to get the sheet Ref as the HSSFSheet does not have the support of sheet.getPackagePart().getPartName().getName(); XSSFSheet sheet = wb.createSheet("Repository"); String sheetRef = sheet.getPackagePart().ge

RE: Support for HSSF(.xls) in BigGridDemo

2011-03-14 Thread Mamatha Kodigehalli Venkatesh
Any Comments/suggestion for my question below. -Original Message- From: Mamatha Kodigehalli Venkatesh [mailto:mamatha.venkat...@ness.com] Sent: Friday, March 04, 2011 2:45 PM To: POI Users List Subject: Support for HSSF(.xls) in BigGridDemo Hello, I was able to use BigGridDemo for

Formula for Entire Column using DataValidation

2011-03-14 Thread Mamatha Kodigehalli Venkatesh
Hello, I have been looking HSSFDataValidation and was able to run the sample below. My requirement is I need to apply this formula for Entire column to achieve the need like When user enters data in col2 (B) of greater than the number specified in col1 (A) and then show the ErrorBox.

RE: Support for HSSF(.xls) in BigGridDemo

2011-03-14 Thread Mamatha Kodigehalli Venkatesh
BigGridDemo On Mon, 14 Mar 2011, Mamatha Kodigehalli Venkatesh wrote: > I was able to use BigGridDemo for creating .xlsx using XSSF > > I want HSSF support to get the sheet Ref as the HSSFSheet does not have > the support of sheet.getPackagePart().getPartName().getName(); BigGridDemo

Any Quick help..... Formula for Entire Column using DataValidation

2011-03-15 Thread Mamatha Kodigehalli Venkatesh
-Original Message- From: Mamatha Kodigehalli Venkatesh [mailto:mamatha.venkat...@ness.com] Sent: Monday, March 14, 2011 6:12 PM To: POI Users List Subject: Formula for Entire Column using DataValidation Hello, I have been looking HSSFDataValidation and was able to run the sample

Workaround so far ... Formula for Entire Column using DataValidation

2011-03-16 Thread Mamatha Kodigehalli Venkatesh
workbook.write(fos); } catch (Exception e) { System.out.println(e); } } Thanks Mamatha -Original Message- From: Mamatha Kodigehalli Venkatesh [mailto:mamatha.venkat...@ness.com] Sent: Tuesday, March 15, 2011 1:41 PM To: POI Users List Subject: Any Quick help. F