prathaban durai

prathaban durai

  • NA
  • 22
  • 9.3k

Saving A report document in c#

Oct 20 2014 4:45 PM
hi,
    i use save as method for setting the filename to be saved for report document
 

 

ReportDocument rptdoc1 = (ReportDocument)crystalReportBrokerCommissionsSelect.ReportSource;

rptdoc1.SaveAs(sFileName,

 

ReportFileFormat.VSNetFileFormat);

rptdoc1.PrintToPrinter(

 

Program._PrinterSettings, new PageSettings(), false);
 
this is the code i use but while saving (crystal Report_ is prefixed with the filename). suppose if the filename is smith..while saving t is showing as crystal report_smith
 
 
i dont want this.. i want it to be only smith.. can anyone help?!