Solved

Report Export Error - Operation not yet implemented

Posted on 2004-09-12
6
2,779 Views
Last Modified: 2012-05-05
Hi,

I am trying to export using a export function i discovered when trying to find the problem. The Code is listed below

private bool ExportReport(ReportDocument crReportDocument,
      string ExpType,string ExportPath, string filename)
    {
      //creating full report file name
      //for example if the filename was "MyReport1"
      //and ExpType was "pdf", full file name will be "MyReport1.pdf"
      filename = filename + "." + ExpType;
     
      string FullPath;
      FullPath = ExportPath + filename;
      DBG.DBG("Export Full Path = [" + FullPath + "]");

      //creating storage directory if not exists
      if (!Directory.Exists(ExportPath))
        Directory.CreateDirectory(ExportPath);
     
      //creating new instance representing disk file destination
      //options such as filename, export type etc.
      DiskFileDestinationOptions crDiskFileDestinationOptions =
        new DiskFileDestinationOptions();
      ExportOptions crExportOptions = crReportDocument.ExportOptions;


      switch(ExpType)
      {
        case "rtf":
        {
          //setting disk file name
          crDiskFileDestinationOptions.DiskFileName =
            ExportPath + filename;
          //setting destination type in our case disk file
          crExportOptions.ExportDestinationType =
            ExportDestinationType.DiskFile;
          //setuing export format type
          crExportOptions.ExportFormatType = ExportFormatType.RichText;
          //setting previously defined destination
          //opions to our input report document
          crExportOptions.DestinationOptions = crDiskFileDestinationOptions;
          break;
        }
          //NOTE following code is similar to previous, so I want comment it again
        case "pdf":
        {
          crDiskFileDestinationOptions.DiskFileName =
            ExportPath + filename;
          crExportOptions.DestinationOptions =
            crDiskFileDestinationOptions;
          crExportOptions.ExportDestinationType =
            ExportDestinationType.DiskFile;
          crExportOptions.ExportFormatType =
            ExportFormatType.PortableDocFormat;
          break;
        }
        case "doc":
        {
          crDiskFileDestinationOptions.DiskFileName = ExportPath + filename;
          crExportOptions.ExportDestinationType =
            ExportDestinationType.DiskFile;
          crExportOptions.ExportFormatType = ExportFormatType.WordForWindows;
          crExportOptions.DestinationOptions = crDiskFileDestinationOptions;
          break;
        }
        case "xls":
        {
          crDiskFileDestinationOptions.DiskFileName = ExportPath + filename;
          crExportOptions.ExportDestinationType =
            ExportDestinationType.DiskFile;
          crExportOptions.ExportFormatType = ExportFormatType.Excel;
          crExportOptions.DestinationOptions = crDiskFileDestinationOptions;
          break;
        }
        case "rpt":
        {
          crDiskFileDestinationOptions.DiskFileName = ExportPath + filename;
          crExportOptions.ExportDestinationType =
            ExportDestinationType.DiskFile;
          crExportOptions.ExportFormatType = ExportFormatType.CrystalReport;
          crExportOptions.DestinationOptions = crDiskFileDestinationOptions;
          break;
        }
        case "htm":
        {
          HTMLFormatOptions HTML40Formatopts = new HTMLFormatOptions();
          crExportOptions.ExportDestinationType =
            ExportDestinationType.DiskFile;
          crExportOptions.ExportFormatType = ExportFormatType.HTML40;
          HTML40Formatopts.HTMLBaseFolderName = ExportPath + filename;
          HTML40Formatopts.HTMLFileName = "HTML40.html";
          HTML40Formatopts.HTMLEnableSeparatedPages = true;
          HTML40Formatopts.HTMLHasPageNavigator = true;
          HTML40Formatopts.FirstPageNumber = 1;
          HTML40Formatopts.LastPageNumber = 3;
          crExportOptions.FormatOptions = HTML40Formatopts;
          break;
        }

      }
      try
      {
        //trying to export input report document,
        //and if success returns true
        crReportDocument.Export();
        return true;
      }
      catch (Exception err)
      {
        DBG.DBG("---------------------------------------");
        DBG.DBG("ERROR: ExportReport");
        DBG.DBG("---------------------------------------");
        DBG.DBG(err.Source);
        DBG.DBG(err.Message);
        DBG.DBG("---------------------------------------");
        return false;
      }
    }

The Code produces the bellow error:
13/09/2004 8:48:06 AM  ---------------------------------------
13/09/2004 8:48:06 AM  ERROR: ExportReport
13/09/2004 8:48:06 AM  ---------------------------------------
13/09/2004 8:48:06 AM  Source  :CrystalDecisions.CrystalReports.Engine
13/09/2004 8:48:06 AM  Message :Error in File C:\Work\Projects\Gosford\Terigal\Reports_20040908\Main.rpt:
Operation not yet implemented.
13/09/2004 8:48:06 AM  ---------------------------------------

Can anyone Help?
0
Comment
Question by:cossy74
  • 4
6 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 12040335
What version and edition of Crystal?

Can you display the report from the Crystal designer?

mlmcc
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 12040960
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 12080861
Glad I could help

mlmcc
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Expert Comment

by:KaptKos
ID: 20510022
NONE of these solutions (Nor any other website suggestions) are remedies to this same issue I'm having.

We downloaded and installed WASP Barcode Font ActiveX software and it exports fine to
Word, Excel, RTF and HTML but NOT 2 Adobe PDF.

 Message "\rError in File C:\\DOCUME~1\\EXTRA\\ASPNET\\LOCALS~1\\Temp\\temp_64615dee-ebf7-4062-aa3a-71ef9b8e6a37 {44CFDF88-04D6-4A8B-825A-CFF20EA9928D}.rpt:\nOperation not yet implemented." string

I've even emailed the morons at WASP and they have no clue. We need a quick resolution because this application goes live soon.

TIA;
KaptKos
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 20527786
KaptKos - To get more expers to work your issue, you need to ask your own question.

mlmcc
0
 

Expert Comment

by:cjtumlin
ID: 35385142
I had the same error message when trying to export a report to Excel format.  This happened with an existing report that had always exported with no problem, until I added a couple of new formulas. After investigating, I discovered that one of my formulas was returning a divide by zero error if a date range was too small.  Once I fixed that formula, it began exporting again with no problem.  I discovered this by trying to export to PDF (since all of the situations discussed here involved PDF) and that was when it returned the divide by zero error.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now