[graphics-dev] save chart image to file

2010-02-22 Thread Oleg Mikheev
Dear Developers, I need to save a Calc chart to external graphical image file. 9 years ago it was promised that a special component would be introduced for that purpose: http://graphics.openoffice.org/servlets/ReadMsg?list=dev&msgNo=70 I couldn't find any trace of such a component in current OO,

Re: [graphics-dev] save chart image to file

2010-02-23 Thread Fernand Vanrie
Oleg , I think that wath waspromesed is also done. You can export a shape to a image, using draw and export the drawpage to any graphical image file you wanted. I have the code in Basic. Comeback when needed and i will post the code here Greetz Fernand Dear Developers, I need to save a Cal

Re: [graphics-dev] save chart image to file

2010-02-23 Thread Niklas Nebel
On 02/23/10 09:12, Fernand Vanrie wrote: I think that wath waspromesed is also done. You can export a shape to a image, using draw and export the drawpage to any graphical image file you wanted. I have the code in Basic. Comeback when needed and i will post the code here A usage example for

Re: [graphics-dev] save chart image to file

2010-02-23 Thread Christian Lippka - Sun Microsystems Gmbh - Hamburg
Hi Oleg, please find an updated example here http://www.ooowiki.de/DiagrammExport It exports chart shapes directly from the current calc document. Regards, Christian Am 22.02.2010 21:41, schrieb Oleg Mikheev: Dear Developers, I need to save a Calc chart to external graphical image file. 9 y

Re: [graphics-dev] save chart image to file

2010-02-24 Thread Oleg Mikheev
> A usage example for GraphicExportFilter is at > http://codesnippets.services.openoffice.org/Office/Office.GraphicExport.snip. > It also works in Calc. > > Hi Unfortunately it still doesn't do what I need. The only way I can use GraphicExport is to get a list of shapes and checking their CLSIDs a

Re: [graphics-dev] save chart image to file

2010-02-24 Thread Ingrid Halama
On 02/24/10 10:10, Oleg Mikheev wrote: A usage example for GraphicExportFilter is at http://codesnippets.services.openoffice.org/Office/Office.GraphicExport.snip. It also works in Calc. Hi Unfortunately it still doesn't do what I need. The only way I can use GraphicExport is to get a list of

Re: [graphics-dev] save chart image to file

2010-02-28 Thread Oleg Mikheev
> Unfortunately it still doesn't do what I need. The only way I can use > GraphicExport is to get a list of shapes and checking their CLSIDs as > described on > > http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Charts/Accessing_Existing_Chart_Documents > > What is

Re: [graphics-dev] save chart image to file

2010-03-01 Thread Fernand Vanrie
Oleg , You can insert your shape in a tempory "hiden "draw" doc and export from there, i use this thechniek for export images out of Writerdocs, its fast and gives no further problems. Unfortunately it still doesn't do what I need. The only way I can use GraphicExport is to get a list o

Re: [graphics-dev] save chart image to file

2010-03-01 Thread Ingrid Halama
On 02/27/10 21:22, Oleg Mikheev wrote: Unfortunately it still doesn't do what I need. The only way I can use GraphicExport is to get a list of shapes and checking their CLSIDs as described on http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Charts/Accessing_Existin

Re: [graphics-dev] save chart image to file

2010-03-01 Thread Ingrid Halama
On 02/27/10 21:22, Oleg Mikheev wrote: Unfortunately it still doesn't do what I need. The only way I can use GraphicExport is to get a list of shapes and checking their CLSIDs as described on http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Charts/Accessing_Existin

Re: [graphics-dev] save chart image to file

2010-03-03 Thread Oleg Mikheev
> > Unfortunately ChartDocument does not support XDrawPageSupplier, > > at least that's what UNO API document states: > > http://api.openoffice.org/docs/common/ref/com/sun/star/chart/ChartDocument.html > > > > Or did you mean some other ChartDocument? > > > > No, the documentation is incomplete the

Fwd: FW: Re: [graphics-dev] save chart image to file

2010-05-26 Thread Oleg Mikheev
W: Re: [graphics-dev] save chart image to file Date: Tue, 25 May 2010 13:51:11 +0400 From: Doan Nguyen Van To: 'Oleg Mikheev' *From:* Doan Nguyen Van [mailto:ngvdoa...@yahoo.co.uk] *Sent:* Tuesday, May 25, 2010 13:46 *To:* 'dev@graphics.openoffice.org' *Cc:* 'ingrid

Re: Fwd: FW: Re: [graphics-dev] save chart image to file

2010-05-26 Thread Ingrid Halama
could (try to) answer the question. Thanks! Original Message Subject:FW: Re: [graphics-dev] save chart image to file Date: Tue, 25 May 2010 13:51:11 +0400 From: Doan Nguyen Van To: 'Oleg Mikheev' *From:* Doan Nguyen Van [mailto:ngvdoa...@yah

Re: Fwd: FW: Re: [graphics-dev] save chart image to file

2010-05-26 Thread Doan Nguyen Van
On 02/26/10 02:59, Ingrid Halama wrote: > Hi, > In case the draw page from spreadsheet is used it is ok to export only the first shape from that page (as this first shape is the chart as it seems in this scenario). But different if you use the draw page of the chart. In that case it is wrong t

Re: Fwd: FW: Re: [graphics-dev] save chart image to file

2010-05-26 Thread Ingrid Halama
Am 26.05.10 12:34, Doan Nguyen Van schrieb: The draw page of the chart has only one shape (drawPage.getCount()returns 1). I've tried to use the draw page for exporting but It was failed, no image has been exported. Ah, I see. Then this is a different problem. The shapes representing the chart

Re: Fwd: FW: Re: [graphics-dev] save chart image to file

2010-05-26 Thread Doan Nguyen Van
> Hm, there are different possibilities how to trigger the generation of the shapes within the given draw page. I think the best one is to directly request the view to update: . . . This is not standard API code, but I don't expect this part of the chart2 API to change in the next years.

Re: Fwd: FW: Re: [graphics-dev] save chart image to file

2010-05-26 Thread Ingrid Halama
Am 26.05.10 16:11, Doan Nguyen Van schrieb: Thanks so much for your helps! Now I could resolve the problem. Nice to hear that! Now I have another problem concerning getting position of a chart within a sheet. With draw page of the sheet, we could get position of the shape using following co

Re: Fwd: FW: Re: [graphics-dev] save chart image to file

2010-05-26 Thread Doan Nguyen Van
Ingrid, > If your first method gives you the wanted result, why not using it? Because the shapes (of draw page of the sheet) don't have any references to TableChart or ChartDocument, so it is not possible to understand which TableChart some shape is related to. > The second method canno

Re: Fwd: FW: Re: [graphics-dev] save chart image to file

2010-05-26 Thread Ingrid Halama
Hi Doan Nguyen Van, Am 26.05.10 17:20, Doan Nguyen Van schrieb: Ingrid, If your first method gives you the wanted result, why not using it? Because the shapes (of draw page of the sheet) don't have any references to TableChart or ChartDocument, so it is not possible to understand whi

Re: Fwd: FW: Re: [graphics-dev] save chart image to file

2010-05-26 Thread Doan Nguyen Van
Ingrid, > If your first method gives you the wanted result, why not using it? Because the shapes (of draw page of the sheet) don't have any references to TableChart or ChartDocument, so it is not possible to understand which TableChart some shape is related to. > The second method canno

Re: Fwd: FW: Re: [graphics-dev] save chart image to file

2010-05-27 Thread Ingrid Halama
Hi Doan Nguyen Van, On 05/27/10 09:50, Doan Nguyen Van wrote: > Do you know how to receive XSpreadsheet from XChartDocument or XTableChart? Query XChartDocument for interface com.sun.star.container.XChild. The parent then should be a XSpreadsheetDocument. Kind regards, Ingrid -

Re: Fwd: FW: Re: [graphics-dev] save chart image to file

2010-05-27 Thread Ingrid Halama
Hi Doan Nguyen Van, On 05/27/10 13:18, Doan Nguyen Van wrote: I have more one question: Is chart name unique in the spreadsheet document? As the PersistName is used to save the OLE object, it must be unique, yes. Kind regards, Ingrid

Re: Fwd: FW: Re: [graphics-dev] save chart image to file

2010-05-27 Thread Doan Nguyen Van
Ingrid, Thank you very much for your helps. Kind regards, Doan Nguyen Van