Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This used to work
Message
From
06/07/2015 07:51:19
 
General information
Forum:
ASP.NET
Category:
Reporting
Environment versions
Environment:
C# 5.0
OS:
Windows 7
Network:
SAMBA Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01621780
Message ID:
01621781
Views:
72
What version of Crystal Reports? What is the specific path?

>Hi all, the code below is from my own invoicing app that has been working perfectly for years, I recently reinstalled windows 7 and all my development tools vs et al during my annual dev machine cleanup and this no longer works i.e it throws an exception which is either "Database logon failed" or "the system cannot find the path specified", I've googled but none of what I've found helps, the location I'm trying to save to definitely exists and I can open the report using Crystal without problem, any ideas ?
>
>
>string CrystalReport = Path.Combine(ReportFolder, "test.rpt");
>ReportDocument crystaldoc = new ReportDocument();
>crystaldoc.Load(CrystalReport);
>crystaldoc.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, pdfFname);
>string rptFname = pdfFname.Replace(".pdf", ".rpt");
>crystaldoc.SaveAs(rptFname);
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform