Crystal Viewer 9 RDC
-
here is my code CRAXDRT.Application crxApp = new CRAXDRT.Application(); CRAXDRT.Report crxRpt = new CRAXDRT.Report(); crxRpt = crxApp.OpenReport(@Application.StartupPath+"\\Report_1.RPT",null); string myExportFile = Application.StartupPath+"\\Report.txt"; crxRpt.ExportOptions.DiskFileName = myExportFile; crxRpt.ExportOptions.FormatType = CRAXDRT.CRExportFormatType.crEFTText; crxRpt.ExportOptions.DestinationType = CRAXDRT.CRExportDestinationType.crEDTDiskFile; crxRpt.ExportOptions.RTFExportAllPages = true; crxRpt.Export(false); after i export, i want to close the crxRPT and crxApp object. because i want to copy the latest database from the server to the my PC but i can't because these object are still connected to the database i try this but didn't work. crxRpt = null; crxApp = null;