Solved

Report Export Error - Operation not yet implemented

Posted on 2004-09-12
6
2,783 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 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