7
votes

I am using the .Net 2008 web application with Crystal Report 10.5. I am able to generate the PDF report in Windows 7. But when I run the application on Windows Server 2012, it shows the below issue.

Error in File C:\Users\sampleUser\AppData\Local\Temp\rptManger{DDEB2C17-C5FD-49C1-B7BF-57F30AB6636C}.rpt: Operation not yet implemented. at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export() at SEI.MA_APPS.PortfolioModels.Web.ManagerDetailByBank.GetReport() at SEI.MA_APPS.PortfolioModels.Web.ManagerDetailByBank.validate()

7

7 Answers

9
votes

There is one more solution for this problem.

Uninstall Update for Microsoft Windows(KB3102429)

Control Panel –> Program & Features –> View installed updates and Search for KB3102429, right click and uninstall.

This solved my issue.

2
votes

One of the reasons for this error can be that one of the fonts used in this report is not installed on your new server. Check if it's installed.

Check this link http://www.crystalreportsbook.com/Forum/forum_posts.asp?TID=1050

2
votes

Control Panel –> Program & Features –> View installed updates and Search for KB3102429, right click and uninstall.

2
votes

Try using other font other than Times New Roman and Arial. say Calibri. That worked for me

1
votes

Thank you all for your support, I got the solution. I opened a report and Surpress the fields one by one and found the fields those have The Times New Roman font are creating the problem.

Since the font "The Times New Roman" is already installed on the Windows 2012.

Then we copied the font "The Times New Roman" from the local Windows 7 and copied to the Windows Server 2012 and restarted the machine and its working fine now.

1
votes

Uninstall Update for Microsoft Windows(KB3102429 and KB3104002)

Control Panel –> Program & Features –> View installed updates and Search for KB3102429 and KB3104002 right click and uninstall.

1
votes

mostly the problem is because of fonts in the new version of windows, I find a way by trick, we can use third party app. First we can convert the crystal report to the word document and by WordToPDF we cant achieve what we need, although this is not the best practice but it works and I think it is better than changing the fonts or even removing the window's updates. so all you have to do is getting WordToPDF from NuGet manager then follow my code:

// before executing the code be sure you have a such directory or folder in c drive
 string filePath = @"C:\word2Pdf\";
            string fileName = Guid.NewGuid().ToString() + "wordReport.doc";
            var fileNameAndPath = filePath + fileName;
            initRep.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.WordForWindows, fileNameAndPath);
var word2Pdf = new Word2Pdf();
object fromLocation = fileNameAndPath;
            string fileExtension = Path.GetExtension(fileName);
            string changeExtension = fileName.Replace(fileExtension, ".pdf");
            if (fileExtension == ".doc")
            {
                object toLocation = filePath  + changeExtension;
                word2Pdf.InputLocation = fromLocation;
                word2Pdf.OutputLocation = toLocation;
                word2Pdf.Word2PdfCOnversion();
            }