FranM Posted August 23, 2010 Report Share Posted August 23, 2010 HiI'm using ChartFX 6.2 for .Net and i'm exporting a chart to an excel file. I was wondering why ChartFX creates temp files in my application's temp and not in ChartFX's temp.Is there a way to change this? The problem is only at exporting charts, visualization works fine (uses ChartFX's temp directory to store files)Thanks a lotFrank Quote Link to comment Share on other sites More sharing options...
CarlosAC Posted August 25, 2010 Report Share Posted August 25, 2010 Hi FranM By default, the export method requires a path where to store the exported file. It does not use the Chart FX temp directory. Can you please check the line of code in where you are exporting the chart? What parameters are the application using in the Export method? Carlos Chaves Quote Link to comment Share on other sites More sharing options...
FranM Posted August 26, 2010 Author Report Share Posted August 26, 2010 Hi Carlos, thanks for your response. Maybe i was not clear enough (sorry for my english), i' was wondering why temp files (graph files) are store in my Application temp's directory and not in ChartFx' temp directory. I'm exporting an xls file with a xlst transformation. This XLS file has 3 graphs on it, 3 temp files (graphs) are generate in my App temp's directory. DataDynamics.ActiveReports.Export.Pdf.PdfExport export = new DataDynamics.ActiveReports.Export.Pdf.PdfExport(); Stream stream = new MemoryStream(); export.Export(sr.Document, stream); byte[] buffer = new byte[stream.Length]; stream.Position = 0; stream.Read(buffer,0,buffer.Length); Response.AddHeader("Content-Disposition", "attachment;filename=filename.doc"); Response.BinaryWrite(buffer); Thanks Quote Link to comment Share on other sites More sharing options...
CarlosAC Posted August 26, 2010 Report Share Posted August 26, 2010 Hi FranM From seeing the code snipped, the export method is done using Quote Link to comment Share on other sites More sharing options...
FranM Posted August 27, 2010 Author Report Share Posted August 27, 2010 Ups my mistake, that actually was the code snippet for a PDF Export. I will copy the real code during the day Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.