![]() Return "Report successfully stored in C:\reports folder" call the export options - can be modified to export to other formats in this case PDF was usedĬonsole.WriteLine(ex.Message.ToString()) String path + FileName + ".rpt" // This is used to store the path where the report is being builtĬrReportDocument.Load(path) // Loads the report from the path given above.ĬrTables = Ĭ(ds.Tables) //Asigns the DataSet to the objectĬrvMain.ReportSource = crReportDocument //crReportdocument is the DataSource. ![]() Public string CreateReport(string SqlString, string FileName)ĭs = getData(SqlString) // This function gets the Data / Summary description for ReportingClass. I am using class file to load crystal report to pdf file for various types of report files using filename.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |