Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Report Export Error - Operation not yet implemented

Posted on 2004-09-12
6
Medium Priority
?
2,792 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
[X]
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
  • 4
6 Comments
 
LVL 101

Expert Comment

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

Can you display the report from the Crystal designer?

mlmcc
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 12040960
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 12080861
Glad I could help

mlmcc
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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 101

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

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 …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

670 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