Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Report Export Error - Operation not yet implemented

Posted on 2004-09-12
6
2,784 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

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.

Question has a verified solution.

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

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…
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 …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 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