Re: Disabling Logging in POI 3.15

2018-11-19 Thread Aram Mirzadeh
I'm sure there a few instances, but your search is bit inaccurate. It includes test and dev classes, scratchpad, etc... if you exclude those I wonder how many system.foo.print we have. On Mon, Nov 19, 2018 at 10:07 AM Sawan.Patwari wrote: > Hi Andi, > There were around 91 matches to the

Re: embedded SQL queries

2015-06-10 Thread Aram Mirzadeh
Assuming new XLSX format -- I had one of these and opening it, the sheets contains the last cached value that was in the excel workbook. POI can read that value without issue. Now if you need the latest data then that's another issue. On Wed, Jun 10, 2015 at 7:33 AM, Mark Beardsley

Re: Downloading Data in Microsoft Word format using Apache POI.

2015-05-23 Thread Aram Mirzadeh
Are you using POI-HMEF to read in the RTF? Not that it matters, but I don't believe HMEF and HSSF/XSSF or SS are directly linked. You'll have to read and store all the formatting information, then create a new XSSF document and apply the formatting you want. From your output I suspect you're

Re: maximum length of cell content is 32767 in HSSFWorkbook

2015-05-23 Thread Aram Mirzadeh
In an individual cell, 32767 characters is the Excel limit. It has nothing to do with POI but POI is rightly limiting so that you can't write a file that you can't read or will not be as intended. XLS format:

Re: Reading date from excel file for different locations

2015-04-12 Thread Aram Mirzadeh
It's a simple string at that point, use SimpleDateFormat or Jodatime to convert it to whatever you like. Although not best practice I usually build a static block of various SimpleDateFromat checker that I use with a loop and an empty catch block to find the right format match. That'll allow you

Re: Clone a workbook?

2014-12-09 Thread Aram Mirzadeh
Why not just system copy the file? On Mon, Dec 8, 2014 at 6:56 PM, Blake Watson blake.wat...@pnmac.com wrote: Is it possible? I'm guessing I could create a new workbook and clone all the sheets but I'm worried I might miss something. -- *Blake Watson* *PNMAC* Application Development

Re: Clone a workbook?

2014-12-09 Thread Aram Mirzadeh
It's still a POJO, no matter how fast or how many copies you need. On Tue, Dec 9, 2014 at 11:56 AM, Blake Watson blake.wat...@pnmac.com wrote: Because it's in memory, and I need a fresh copy every few seconds. =P On Tue, Dec 9, 2014 at 12:30 AM, Aram Mirzadeh a...@mbcli.com wrote: Why

Re: Create an excel file using template

2014-12-06 Thread Aram Mirzadeh
Just open the template, manipulate as needed, save to a different location. Or Use FileCopy to copy the template to it's destination, then open it and manipulate it. On Sat, Dec 6, 2014 at 8:03 AM, j.ballada...@verizon.net j.ballada...@verizon.net wrote: Hi all, I check this link of examples

Re: Insert a formatted value?

2014-11-21 Thread Aram Mirzadeh
You can set the value to whatever you want it to be, but if you set it to $123,456.00, it'll be stored as a String. If you want it to be numeric, then you have to set the value of the cell to a numeric value (123456), then apply the formatting to it. On Fri, Nov 21, 2014 at 4:34 PM, Blake Watson

Re: Taking more time in extracting the plain text from 2003 MS excel

2014-11-11 Thread Aram Mirzadeh
There exists a test class/interface just for this, search for classes that implement the ExcelExtractor interface. for example: ./src/ooxml/testcases/org/apache/poi/xssf/extractor/TestXSSFEventBasedExcelExtractor.java On Tue, Nov 11, 2014 at 5:06 AM, Jebarlin Robertson

Re: To process more than 65536 rows in XSLX file using XSSF reader

2014-10-22 Thread Aram Mirzadeh
You may have to post your code to see where the problem is then. On Wed, Oct 22, 2014 at 6:43 AM, ms_guruvai ms.sankaralin...@gmail.com wrote: Sorry we able to get good rows when file cotanins exactly 65536 rows or less than that. After that even if we increase one or two rows also we

Re: To process more than 65536 rows in XSLX file using XSSF reader

2014-10-21 Thread Aram Mirzadeh
65535 would be the hard limit on short and older xls files. If you're processing 65538 maybe you're running out of heap space? Try increase your Xmx. On Tue, Oct 21, 2014 at 2:07 PM, ms_guruvai ms.sankaralin...@gmail.com wrote: yes!. we are not using any short type. still only prcoessiong

Function Matrix for other projects?

2014-09-16 Thread Aram Mirzadeh
Hi, Is there a function matrix available for the other projects? (excluding the event and streaming) http://poi.apache.org/resources/images/ss-features.png Thanks.

Re: Function Matrix for other projects?

2014-09-16 Thread Aram Mirzadeh
Thanks Nick. I was hoping for a for the component level support matrix. I'll use the text provided on the overview page. Aram On Tue, Sep 16, 2014 at 9:02 AM, Nick Burch apa...@gagravarr.org wrote: On Tue, 16 Sep 2014, Aram Mirzadeh wrote: Is there a function matrix available for the other

Re: How to copy a table and modify it correctly in the same docx file using POI?

2014-09-06 Thread Aram Mirzadeh
Because they're passed by reference not by content. You're better off just re-creating the table as needed than copying an existing one. On Sat, Sep 6, 2014 at 12:28 PM, 尘 445335...@qq.com wrote: Hi, everybody, I need to generate a complex docx file which mainly contains many tables. I

Re: Issue while reading .docx(of more than 10mb) file with Apache POI

2014-09-01 Thread Aram Mirzadeh
http://stackoverflow.com/questions/6452765/how-to-increase-heap-size-of-jvm On Mon, Sep 1, 2014 at 6:42 AM, Ajeet V. Singh ajeet.si...@mastek.com wrote: Hi Team, I am using apche POI-3.10, I have to read an sample.docx file and write its content to new sampleOutput.docx file. However I

XSSF cell background solid?

2014-03-20 Thread Aram Mirzadeh
Hi, Is it me or you can't set a solid background color on cells? I need to highlight a couple of rows of data, is there any other alternatives? I'm already using text coloring for other purposes. Aram - To unsubscribe,

Re: yet another autoSizeColumn problem.

2014-03-03 Thread Aram Mirzadeh
It's a JDK 7 problem ... if you can recompile with 1.6 it'll work. On 3/3/2014 4:39 PM, Crocker, David wrote: Hi, I'm struggling with the worksheet.autoSizeColumn() method. I've looked over posts on the web, but can't seem to tease out what I'm doing wrong. I followed all of the advice

Re: Extracting images from existing XLS or XLSX spreadsheets?

2014-03-03 Thread Aram Mirzadeh
Not sure if this is the best way or not. I have found with XSLX, it's much easier to unzip the file and go through the media directory and grab an image that I need rather than trying to do it with the POI API. It's a hack but it works. On 3/3/2014 5:42 PM, Steve Lamont wrote: Dear all:

Re: Extracting images from existing XLS or XLSX spreadsheets?

2014-03-03 Thread Aram Mirzadeh
On 3/3/2014 8:01 PM, Steve Lamont wrote: Never mind. I'm an idiot. spl - To unsubscribe, e-mail: user-unsubscr...@poi.apache.org For additional commands, e-mail:

XWPFTable to Run object

2014-02-26 Thread Aram Mirzadeh
Hi, I have an existing document with a place holder in it. I need to replace the place holder with a table with some rows and columns. How do I convert a XWPFTable object to a Run object so that I can document.addRun(myTable)? Thanks.

Re: Odd behavior in POI 3.10-beta1 java7

2013-12-12 Thread Aram Mirzadeh
On 12/11/2013 11:12 PM, Nick Burch wrote: On Wed, 11 Dec 2013, Aram Mirzadeh wrote: The first 15 rows (all columns), the text of the cell is replaced with a numeric value, it's the same value each time but I can't figure out where it's coming from. Commenting out the cell.setCellType

Odd behavior in POI 3.10-beta1 java7

2013-12-11 Thread Aram Mirzadeh
I have this method for a number of years and I think when I upgaded to 3.10-beta1 I started to see this odd behavior. I'm also running 64-bit jdk build 1.7.0_25-b17, in eclipse Juno (64bit) on windows 7 (64bit). The first 15 rows (all columns), the text of the cell is replaced with a

Re: Copying sheets across from one WB to another WB

2012-10-12 Thread Aram Mirzadeh
, Yegor Kozlov wrote: We never had such a method. With POI you can clone a sheet in a workbook, that's similar but not qiute the same. Yegor On Fri, Oct 12, 2012 at 12:50 AM, Aram Mirzadeh a...@mbcli.com wrote: Hi, I might be losing my mind, but I thought I had seen a method that copied

Copying sheets across from one WB to another WB

2012-10-11 Thread Aram Mirzadeh
Hi, I might be losing my mind, but I thought I had seen a method that copied a sheet from one workbook to another. I can't seem to find it now. Am I dreaming? Was there ever such a util class? Aram - To unsubscribe,

Re: Number of styles applied

2012-05-09 Thread Aram Mirzadeh
( at some level and in XML version ) because even if it fails to open correctly, you can apply the sytle to the cells again and save it/open it and it works. Aram On 5/9/2012 1:22 PM, Nick Burch wrote: On Mon, 7 May 2012, Aram Mirzadeh wrote: Recently, after we upgraded to 3.8 we started to have

Re: Number of styles applied

2012-05-09 Thread Aram Mirzadeh
Solution -- don't use a singleton to create your styles. On 5/9/2012 7:02 PM, Aram Mirzadeh wrote: I created a bug and attached a test case for this in bugzilla, #53209. I am creating ahead of time in a singleton and then just applying them to the cells. I included the singleton

Number of styles applied

2012-05-07 Thread Aram Mirzadeh
Hi, I'm tracking down an issue with one of our excel generators. The programs copies then modified a standard template and fill it in with a ton of data. Recently, after we upgraded to 3.8 we started to have a strange behavior. The excel file would open in a corrupted state, and excel

HSLF vs. XSLF

2011-08-30 Thread Aram Mirzadeh
I have to do some automated power point modifications to an existing template file (PPTX, although it has no PPTX features being used). What I need to do is find and duplicate slides, find and replace text, insert a couple of graphics (bar, pie charts). The master is nicely setup, with

Re: HSLF vs. XSLF

2011-08-30 Thread Aram Mirzadeh
On 8/30/2011 11:21 AM, Nick Burch wrote: On Tue, 30 Aug 2011, Aram Mirzadeh wrote: At this point, is it worth working with XSLF if no features are being used? Or am I better off sticking with OLE for now until we can improve XSLF further? You'll likely find that HSLF is better developed than

Re: Format Cells... option disabled in password protected HSSFSheet - POI-3.2

2010-12-24 Thread Aram Mirzadeh
with OOXML, it works in 3.7, no idea about 3.2 or OLE2. On 12/24/2010 7:38 AM, Sai Smriti Mohapatra wrote: Hi, Has anyone been able to edit cell formats on a password protected HSSFSheet created using POI-3.2? I am creating a HSSFSheet with locked and unlocked cells and protecting it with a

Re: Getting null pointer at getResourceAsStream(METADATA_FILE_NAME) FunctionMetadataReader.java

2010-12-19 Thread Aram Mirzadeh
It sounds like you changed the POI library codes and now it doesn't work. This isn't a IDE problem. After you made the change did you run through all of the various test-cases? Did you write a new test-case for your new functions? My suggestion is to trace it down in Eclipse to the

Re: How to write the metadata into the document.

2010-12-18 Thread Aram Mirzadeh
This is from my code for XSSF: POIXMLProperties.ExtendedProperties props = getProperties().getExtendedProperties(); props.getUnderlyingProperties().setApplication(© 2010 TranquilPhotos.com); The props are very limited capabilities as far as I know though. For example I have a lot of custom

Re: How to write the metadata into the document.

2010-12-18 Thread Aram Mirzadeh
You're 100% right, I had that somewhere else in my LIbrary jar and I never realized it was getting called. On 12/18/2010 8:53 AM, Mark Beardsley wrote: Hello Aram, I have had a dig around and think that, in this case, the OP needs to call the getCoreProperties() method of the

Re: Copy xls sheet from one workbook to another work book using HSSF POI

2010-12-16 Thread Aram Mirzadeh
Just in case it helps you in this case -- I was doing the same thing and having all sorts of issues until someone pointed out you can just copy the template using system copy and then modify what you want rather than do it programmatically. On 12/15/2010 1:35 PM, Narayanan wrote: I can

Re: Images and XSSF unexpected results...

2010-12-11 Thread Aram Mirzadeh
It isn't a graphic it's a text box but the content is still editable as text. If not, can you post the workbook.xls file. On 12/10/2010 3:45 PM, Risken wrote: Why is it that the generated xlsx file containing 2 images and one textbox gives such strange result when I try dragging the

Re: Updating an embedded Excel file inside Word

2010-12-10 Thread Aram Mirzadeh
On 12/10/2010 6:51 AM, Mark Beardsley wrote: Hello Nick, No, that does not seem to work for me. The result is that the workbook in the embeddings folder is actually empty or blank following the write operation and using the OutputStream obtained from the PackagePart object. Also, deleting the

Re: Updating an embedded Excel file inside Word

2010-12-10 Thread Aram Mirzadeh
If I try what you suggest, the output file is actually corrupted. I can still open the resulting word document in office (the original image is there, but it's no longer an excel embedded file) - I think the image that shows up is a cached image. If I try to open it back in POI, I get all

Re: Excel Hyperlink Styling with POI

2010-12-09 Thread Aram Mirzadeh
This works for me, these are created as part of style generation, which are global // - Hyperlinks - by default hyperlinks are blue and underlined hLinkStyle = wb.createCellStyle(); final Font hLinkFont = wb.createFont(); hLinkFont.setFontName(Ariel);

Re: Updating an embedded Excel file inside Word

2010-12-09 Thread Aram Mirzadeh
On 12/8/2010 8:06 PM, Nick Burch wrote: On Wed, 8 Dec 2010, Aram Mirzadeh wrote: Let me make sure I'm on the right path here, because this isn't sticking in my head yet. 1. Open the docx 2. Get all embedded part as pPart 3. Use pPart.getPartName().getName() to get the name of the embedded

Re: Updating an embedded Excel file inside Word

2010-12-08 Thread Aram Mirzadeh
On 12/7/2010 7:56 PM, Nick Burch wrote: On Tue, 7 Dec 2010, Aram Mirzadeh wrote: On 12/7/2010 12:47 AM, Nick Burch wrote: On Sun, 5 Dec 2010, Aram Mirzadeh wrote: I'm trying to update the values for the excel chart. I can read the docx, get the embeded object, and read and modify the cells

Re: FW: Formatting a cell as date while preserving other formatting associated with that cell.

2010-12-08 Thread Aram Mirzadeh
I just did this in 3.7-release and it worked for me. The cell kept the existing style (which was just bolded). Just a note that I use SS style to be consistent, rather than switch back to XSSF as you have done here. Aram On 12/8/2010 4:14 PM, Rohan Grover wrote: Hello all, I am

Re: Updating an embedded Excel file inside Word

2010-12-07 Thread Aram Mirzadeh
On 12/7/2010 12:47 AM, Nick Burch wrote: On Sun, 5 Dec 2010, Aram Mirzadeh wrote: I'm trying to update the values for the excel chart. I can read the docx, get the embeded object, and read and modify the cells that I need. My question is how do you save the embedded excel file? You'll

Re: Updating an embedded Excel file inside Word

2010-12-06 Thread Aram Mirzadeh
Forgot to mention that I'm on POI 3.7. Thanks. On 12/5/2010 10:38 PM, Aram Mirzadeh wrote: Hi, I'm reading in a docx (2007 xml based [actually it's from word 2010]) file which has a Excel chart embedded in it (suprisingly it isn't xlsx, it's binary xls file format). I'm trying to update

Updating an embedded Excel file inside Word

2010-12-05 Thread Aram Mirzadeh
Hi, I'm reading in a docx (2007 xml based [actually it's from word 2010]) file which has a Excel chart embedded in it (suprisingly it isn't xlsx, it's binary xls file format). I'm trying to update the values for the excel chart. I can read the docx, get the embeded object, and read and

Removing the link from a cell in XSSF

2010-09-24 Thread Aram Mirzadeh
Hi, Is the functionality to remove a link from a cell (internal link to another sheet) exist in XSSF? I cannot seem to find it in any of the javadocs. Thanks. - To unsubscribe, e-mail: user-unsubscr...@poi.apache.org

Re: xmls files

2010-09-24 Thread Aram Mirzadeh
I've been using XLSM files for a while now I think, using 3.7b1 now so it was supported at some point or maybe if you don't touch the macro part of it -- it has always worked. I changed your code to use SS model and it works fine -- public static void main(final String[] args) throws

Re: Memory and perfomance issues

2010-08-24 Thread Aram Mirzadeh
I've run into the same error at least and it turned out to be surprising enough, illegal characters for XML without being escaped. Either check the source data coming in or add in all of the checks to make sure the data you're inserting doesn't haveetc... On 8/20/2010 9:30 AM,

Fatests method of Duplicating a XSSF workbook

2010-08-06 Thread Aram Mirzadeh
Hi, I have a template XSLM file that I use as the basis for the output file. In HSSF I just duplicated the workbook via: private static POIFSFileSystem duplicateTemplate(final String outputExcelFile, final String templateFile) { POIFSFileSystem fs = null;

Re: Fatests method of Duplicating a XSSF workbook

2010-08-06 Thread Aram Mirzadeh
Really the only reason is the verification of the content being actually a valid excel file. Although I can come up with something else during the template upload to verify that and not do it here. On 8/6/2010 10:55 AM, Mark Fortner wrote: Is there some reason that you're not using

Re: PowerPoint master styles and Picture class question

2010-08-05 Thread Aram Mirzadeh
I still haven't been able to find anything further on this. Is this something that is not implemented? On 7/27/2010 9:21 AM, Aram Mirzadeh wrote: Hi, Two questions: 1) I'm adding in an image (png) to a slide, there doesn't seem to be a way of getting the width and height of the image

PowerPoint master styles and Picture class question

2010-07-27 Thread Aram Mirzadeh
Hi, Two questions: 1) I'm adding in an image (png) to a slide, there doesn't seem to be a way of getting the width and height of the image via the Picture class. Is there a class that I'm missing that can provide this or do I just have to read in the file seperately and figure out it's

Re: Stable version release date.

2009-08-21 Thread Aram Mirzadeh
This is an old joke and off topics so I apologize in advance for both. But don't you love the sound of deadlines? Specially as they fly right by? Aram Yegor Kozlov wrote: We plan to release 3.5-FINAL by October 1. Stay on the mailing list and watch for announcements. Yegor There's got

Re: autosize in Excel irrespetive of image

2009-08-03 Thread Aram Mirzadeh
private final static char bulletChar = 8226; deep4u wrote: Hi Mark, what is the character value for arrow type of bullet. can u send out what are available characters. Thanks, MSB wrote: I am just weak and could not resist having a play. Anyway, here you go, how to

DOCX Support

2009-07-16 Thread Aram Mirzadeh
Hello, I have a task to update the properties (custom variables) of a DOCX file (Office 2007). I tried looking on POI's website but I can only find a reference to a XPFFWordExtractor but not much else in terms of docx support. I know it's still in very early development, but I was hoping

HSSF to XSSF Cheat Sheet?

2009-06-18 Thread Aram Mirzadeh
Hi, I'm just finished with my HSSF project and I already need to start looking at moving to XSSF. The size of the file in HSSF is just unworkable at this point. Now I know the XSSF coding is nowhere near as mature of the HSSF code. Is there a list of functions/areas that have been

SVN build fails rev-782147

2009-06-05 Thread Aram Mirzadeh
Hi I just downloaded the last SVN and am trying to build it on Vista 64. 'ant jar' does work, so I can continue, but just wanted to report this -- this is the result of 'ant dist' site: BUILD FAILED c:\POI\build.xml:847: The following error occurred while executing this line: