Jump to content
Software FX Community

Export - Temp Directory


FranM
 Share

Recommended Posts

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...