Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
save the pdf in hard coded location. then allow user to again save in local disk.
posted

Hi,

I am exporting the data to pdf like:

UltraGrid UltraGrid1 = new UltraGrid();
UltraGridDocumentExporter ultraGridDocumentExporter1 = new UltraGridDocumentExporter();
DataSet correlationsDataSet = correlations.CalculateCorrelations(marketDate, processTrigger, deleteFirst);
DataTable dtMissingCorrelation = correlationsDataSet.Tables["Missing Correlation"];
UltraGrid1.BindingContext = new System.Windows.Forms.BindingContext();
UltraGrid1.DataSource = dtMissingCorrelation;
ultraGridDocumentExporter1.Export(UltraGrid1, "missingPricesGrid.pdf", GridExportFileFormat.PDF);

now i want to save the file in a given location. Then the file should open and user could then save the file in the local dosk space if he wants to.

Please share code regaring this.

Thanks & Regards,

Suman George

  • 469350
    Offline posted

    Hi Suman,

    I'm not sure what you are asking. What part of this are you having trouble with?

    To launch the PDF file with whatever default reader the user has installed on his machine, you could use:

    Process.Start("missingPricesGrid.pdf");

    Then the user could save the file or do whatever they want with it.