Solved

Report Export Error - Operation not yet implemented

Posted on 2004-09-12
6
2,786 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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. …
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

756 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