Crystal report 13.0.2 document.ExportToStream html40 file not found issue

when export to html, it seems like the html file is exported suessfully but when it is reading the file back, it said the file is not found. but by opening up the temp folder, the file is there but with the .html extension instead of the reported missing file with the .htm extension. bug?

hi Don,
here's the code used:
var stream = document.ExportToStream(ExportFormatType.HTML40);                           
that's where the exception is thrown. with reflector, the code boil down to this:
HTMLFormatOptions htmlFormatOptions = new HTMLFormatOptions();
      htmlFormatOptions.HTMLBaseFolderName = (string) null;
      StringBuilder stringBuilder = new StringBuilder();
      stringBuilder.Append("cr_export_");
      stringBuilder.Append(Guid.NewGuid().ToString());
      stringBuilder.Append(".htm");
      string path = Path.Combine(Path.GetTempPath(), ((object) stringBuilder).ToString());
      htmlFormatOptions.HTMLFileName = path;
      htmlFormatOptions.HTMLEnableSeparatedPages = false;
      reqContext.ExportInfo.ExportFormatOptions = (ExportFormatOptions) htmlFormatOptions;
      HTMLExporter htmlExporter = new HTMLExporter(this, reqContext);
      htmlExporter.Export();
      FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.None);
      try
        MemoryStream memoryStream = new MemoryStream();
        try
          byte[] buffer = new byte[4096];
          int count;
          while ((count = fileStream.Read(buffer, 0, 4096)) > 0)
            memoryStream.Write(buffer, 0, count);
          if (memoryStream != null && memoryStream.Length > 0L)
            return (Stream) memoryStream;
        catch
          memoryStream.Close();
      finally
        if (fileStream != null)
          fileStream.Close();
        htmlExporter.RemoveTempFiles();
notice the line
htmlExporter.Export(), think that's where it generate the whatever.html page, but notice the path building logic, it use .htm but not .html.
is it not a bug? I open up the temp folder and see the .html file but not the .htm file.
Kevin

Similar Messages

  • Crystal Reports 2008-Vista-ERROR-crw32.exe Entry Point Not Found in dll

    Hi Experts,
    I just installed the Crystal Reports 2008 (with SP0) on my Vista (Home) machine.  When I try to start the CR 2008, I am getting the below error message:
    Error Title: crw32.exe - Entry Point Not Found
    Error Message: The procedure entry point ?PrintLegend@CMapXLegend@CSLib300@@QAEXJJJJJ@Z could not be located in the dynamic link library cslibu-3-0.dll
    Here are the things I tried to resolve the above problem:
    1) Uninstall and Reinstall the CR 2008.  -  No change.
    2) I configured the DEP to accept Crystal Reports (Performance - Advanced - DEP allow). 
    None of these seem fix the problem. 
    Can you please help me kick start the Crystal Reports 2008? 
    Thanks,
    Arun

    Please try with this:
    Run a command prompt as administrator. From the start menu, select "All Programs", then "Accessories" and right-click on the "Command Prompt" shortcut and choose "Run As Administrator". From here you can use the following command to disable Data Execution Prevention (DEP) with the following command:
    bcdedit.exe /set nx AlwaysOff
    Keeping your command prompt open, run your setup or other process being stopped by DEP. Then, to turn it back on again, do the same and run the following:
    bcdedit.exe /set nx AlwaysOn
    Regards,
    Shweta

  • Crystal report for Enterprise show latest instance shows URL not found error

    hi everyone,
    we recently upgraded our BO4.1 platform from SP2 to SP5.
    after the upgrade we are getting error while view the latest instance of Crystal report in BI launchpad, this error occurs only for Crystal report and that only when we scheduled in pdf format.
    anybody faced this issue before, any idea or resolution?
    Thanks in advance.
    Regards,
    Ganesh

    when I click on view latest instance, i am getting below error.
    The requested URL /BOE/portal/1503182223/CrystalReports/filename/CREnt_BICS_STS_Check.pdf was not found on this server
    but when see the path, I could see the path till /BOE/portal/1503182223/CrystalReports/
    is it remaining path, like the “file name” part generated at runtime?
    could you please support me, do we need changes required in tomcat?
    Regards,
    Ganesh

  • Link in alert email for PPTX document leads to "File Not Found" - Caused by encoding error

    We have an issue brought to our attention by our customers that has me scratching my head.  When our users sign up for an alert on a document library and a PowerPoint document is edited, the link in the alert email looks something like this:
    http://Teams/sites/TeamABC/_layouts/PowerPoint.aspx?PowerPointView=ReadingView%26PresentationId=/sites/TeamABC/Shared%2520Documents/SharePoint%2520Service%2520Management.pptx
    Although the issue looks like it could be with the double encoded spaces (first encoded is %20, second encoding is %2520), those work fine.  The issue comes from the %26 between "ReadingView" and "PresentationId".  The %26 is an encoded "&". 
    If I replace %26 with "&" the url string works fine.  I have tried this in IE, Firefox, and Chrome and the result is the same in each, so it's not a browser issue.
    The question then becomes, is the error the encoding when the alert is created and sent or is the error with the http handler in SharePoint that doesn't appear to understand how to handle %26?  With that, any ideas on how to fix this (other than tell
    users to edit the url in the browser changing %26 to "&")?
    I should mention we are using SharePoint 2010, SP1, plus August 2011 CU, with Office Web Apps. 

    Hello,
    I think it is because we cannot use "&" in the file name when uploading the file to Sharepoint, we will receive the
    message:
    The following characters cannot be used anywhere in a site name, in a subsite name, or in a site or Active Directory group name:
    tilde (~)
    number sign (#)
    percent (%)
    ampersand (&)
    asterisk (*)
    braces ({ })
    backslash (\)
    colon (:)
    angle brackets (< >)
    question mark (?)
    slash (/)
    plus sign (+)
    pipe (|)
    quotation mark (")
    You can check this
    post on SharePoint forum:, if you have further questions, you can also post the question on the SharePoint 2010 forum
    here
    Hope above helps.
    Daisy Cao
    TechNet Community Support

  • File not found error when Downloading Crystal Reports 2008

    Hi,
    I am trying to download a trial version of Crystal Reports 2008. I get the error "file not found" both times when I downloaded the zip file and opened it first from the Free trial link and next from the Diamond community page link.  Can anyone help pls. ? Thanks AC

    New location to download: http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Print Preview of crystal Report without add a document

    Dear All,
    Can i see the Print Preview of Crystal Report without add a document like PLD.
    i have developed a Crystal Report through Add Command by Passing a query.
    if anybody have  idea on this issue please  suggest me.
    Thanks.
    Shekhawat

    Hi Shekhawat....
    Through Query Crystal report it is not possible to view the Layout as Draft withou adding teh docs because Report fetch the details only when itys value goes to Database Table......
    So suggest to use SAP standard CR and modify as you want....
    Regards,
    Rahul

  • Crystal report refresh based on document ID

    Hi All,
    i am able to do webi report refresf based on document id but i am not able to find crystal report refresh based on document ID BO SDK API on JAVA.
    please help me on this?
    the below code is for webi report refresh :
    ReportEngines engines = (ReportEngines) Esession.getService("ReportEngines");
    ReportEngine widocRepEngine = (ReportEngine) engines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
    widocRepEngine.setLocale("en_US");
    DocumentInstance doc = widocRepEngine.openDocument(documentId);               
    doc.refresh();

    Well, first, the ReportEngine code you are using is only for Webi and Deski.  You may want to start by looking at the RAS and Enterprise sections of the this [wiki|http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications]

  • Total No of pages different in report printed using Crystal Report XI R2 vs SAP Crystal Reports, developer version for Microsoft Visual Studio (File Version 13.8)

    Currently in our application, we are using Crystal Report XI R2 for generating the reports. We are in the process of upgrading the Crystal Report to SAP Crystal Reports, developer version for Microsoft Visual Studio (File Version 13.8). I updated that on my machine and all the reports work fine. I didn't have to modify any of the reports.
    However when comparing the reports, we found that there are few reports on which the total no. of pages differ from the report displayed using Crystal Report XI R2 vs SAP Crystal Reports, developer version for Microsoft Visual Studio (File Version 13.8). Comparing the reports, it looks all the data that were fit on one page earlier with version XI R2 doesn't fit on the same page with version 13.8, thereby increasing the page counts.
    The fonts, page margins everything set on report itself. Nothing being set in the code.
    Both the application is using the same report that is pulling the data from the same database. Our application is a web application.
    Any suggestion, why this is happening.
    Thanks.
    Sanjay

    I am not sure what is being compared here?
    CRXI R2 designer to CRVS?
    CR XI R2 in some version of .NET to CRVS?
    CR XI R2 using RDC SDK to CRVS?
    Also, is this happening on your development computer or after you deploy?
    If you compare the the "Page setup" options dialog between reports that work and those that do not work, do you see any difference?
    Is this a web or a win app?
    Are you seeing the same issue when viewing and exporting - say export to PDF?
    What is the printer driver used and it's version?
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • A Crystal Reports job failed because a free license could not be obtained i

    We have an enterprise application installed at a clients site where they have 10 CITRIX clients connecting to 5 APPLICATION servers (the servers are being load balanced). The application allows users to generate reports. The reports are generated on the APPLICATION servers. We have written some queued components which allow up to 5 reports to be generated at the same time. We have crystal reports XI installed on the APPLICATION servers. Currently we get the following error when users attempt to generate reports:
    A Crystal Reports job failed because a free license could not be obtained in the time allocated
    However if you change the queued components to only generate 1 report at any given time we do not get the error.
    Any ideas on what could be causing this?
    Thanks in advance.
    Raman.

    duplicate - please do not post multiple times

  • File not found error when tried to open Document ID settings page

    Hi
    when i open sitesettings>site collection administratin >Document
    ID settings
    it shows
    file not found error
    adil

    Hi,
    first we need to figure out the error. change the web.config so that you can see the error on browser
    1) Obtain the complete call stack instead of the default error page:
    <SafeMode MaxControls="200" CallStack="false"/>
    to
    <SChangeafeMode MaxControls="200" CallStack="true"/>
    2) CustomeErrors mode value (in the system.web section) is set to Off:
    <customErrors mode="On">
    to
    <customErrors mode="Off">
    Change these value in "c:\inetpub\wssroot"  CA dirctory web.config and
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\web.config .
    now again try to do the action. you will get the error on screen.
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • Sun server - file not found warning message - send-file reports: HTTP4142

    (File not found)
    [25/Sep/2012:17:37:34] warning ( 9732): for host 127.0.0.1 trying to GET /vt/css/body_ie8.css, send-file reports: HTTP4142: can't find C:/Program Files/Sun/WebServer7/https-AC7440R877W6X.com/web-app/AC7440R877W6X.com/vt/css/body_ie8.css.
    sun server is trying to find file body_ie8.css which is not exist. now i m testing application in ie8 so getting error like this. If i run same application in ie6 i will get body_ie6.css. if i create dummy files with these name i wont get any error message.
    another sample error message
    warning (14280): for host 127.0.0.1 trying to GET /vt/css/icefaces_ie.css, send-file reports: HTTP4142: can't find C:/Program Files/Sun/WebServer7/https-AC7440R877W6X.com/web-app/AC7440R877W6X.com/vt/css/icefaces_ie.css (File not found).
    I m running JSF framework icefaces implememntation

    Hi:
    After some days and several test I discover the solution.
    I'm using Unicodes in the messages text (like \u00e9, \u00e1) and due to a typing mistake, in just a word the sequence \u00es appears instead of \u00e9.
    It seems \u00es is not a valid Unicode code and that was the cause of this particular error.
    I think this kind of message error must change depending which web server is used.
    As i said, i'm using the embedded oc4j server.
    Bye.

  • Crystal Reports XI String [255] limit with the File System Data driver...

    I was trying to create a Crystal Reports XI report to return security permissions of files and folders.  I have been able to successfully connect and return data using the File System Data driver as the Data Source; however the String limit on the ACL NT Security Field is 255 characters.  The full string of data to be returned can be much longer than the 255 limit and I cannot find how to manipulate that parameter. 
    I am currently on Crystals XI and Crystal XI R2 and have applied the latest service packs but still see the issue.  My Crystal Reports Database DLL for File System data ( crdb_FileSystem.dll ) is at Product Version 11.5.10.1263.
    Is it possible to change string limits when using the File System Data driver as the Data Source?  If so, how can that be accomplished.  If not, is there another method to retrieve information with the Windows File System Data being the Data Source?  Meaning, could I reach my end game objective of reporting on the Windows ACL's with Crystal through another method?

    Hello,
    This is a known issue. Early versions you could not create folder structures longer than 255 characters. With the updates to the various OS's this is now possible but CR did not allocate the same space required.
    It's been tracked as an enhancement - ADAPT01174519 but set for a future release.
    There are likely other ways of getting the info and then putting it into an Excel file format and using that as the data source.
    I did a Google search and found this option: http://www.tomshardware.com/forum/16772-45-display-explorer-folders-tree-structure-export-excel
    There are tools out there to do this kind of thing....
    Thank you
    Don
    Note the reference to msls.exe appears to be a trojan: http://www.greatis.com/appdata/d/m/msls.exe.htm so don't install it.
    Edited by: Don Williams on Mar 19, 2010 8:45 AM

  • Problem on using Crystal Report Viewer on windows application ("specified type is not valid ")

    Hi
    I am having problem on using Crystal Report Viewer on one of my windows application.
    I am not sure how to put the Crystal Report Viewer 11 Control onto the tool box.
    I could found a Crystal Report Viewer control on my computer, but it is version 8.5.
    I have also found another one which is Called Crytal ActiveX Report Viewer, i don't think it is the one I can use. As when I try to load a dummy report on to the Crytal ActiveX Report Viewer, It return an error. "specified type is not valid"
    Please see the Code sample below.
    private sub loadReport()
         Dim r as New ReportDocument
         'v is the name of the Crystal ActiveX Report Viewer Control
         r.Load("C:\Report1.rtp")
         v.ReportSource(r) <---It throw error on this line.
    End Sub
    Could you give me some advice about what have I done wrong, How to check if I have set up the Crystal Report Component correctly in my Visual Studio 2005 Standard edition.
    Thanks in advances.
    Many thanks
    Chi

    VS 2005 Standard and Express editions do not come with Crystal Reports; only the Professional and higher editions will have CR bundled. However, I believe you can purchase CR XI R2 Developer and it will give you the components you need to create a VS .NET 2005 application using the Standard edition.
    -MJ

  • SAP Crystal Reports 2011: Error INS00140 The Product keycode is not valid

    I have followed all of the instructions in the previous thread but am still getting the error message.  I am trying to install on a Windows 7 machine.

    Try this Post...
    SAP Crystal Reports 2011: Error INS00140 and other install errors
    PS - Coy no longer works here
    Don

  • Crystal Reports Server 2008 FP 4.1 Update did not update InfoView/Cmc ?

    Hi all,
    last year I installed a Crystal Reports Server 2008. After installation I had the following version numbers:
    Server = 12.3.0
    InfoView/Cmc = 12.1.0
    Now I downloaded all packages of service pack 4 and fix pack 4.1 and tried to install them in following order:
    Crystal Reports Server 2008 V1 Service Pack 4 for Server Components
    Crystal Reports Server 2008 V1 Service Pack 4 for Client Components
    Crystal Reports Server 2008 V1 Fix Pack 4.1 for Server Components
    Crystal Reports Server 2008 V1 Fix Pack 4.1 for Client Components
    The installation of the server components worked fine, however the installation of the client components failed with "Base version mismatch". Now I have these version numbers:
    Server = 12.4.1
    InfoView/Cmc = 12.1.0
    Is that the intended behaviour? Is there no need to update InfoView/Cmc too? I know that InfoView did not work with IE 9 before the update, so I hoped to get an update of it.
    Thanks for any info
    Joern

    Hi Joern,
    Don't pay attention to the version that you get from infoview or CMC.
    It never changes and will always remain 12.1.0
    In order to know your BOE version, you can check it in
    CMC > Settings
    In the add/remove programs, it lists the version installed
    You also have a tool which is software inventory tool which list the version installed.
    For clients, if you go in the folder where the .exe is, if you right click on it and select properties then you will get the version number in the version tab
    I hope this will help you
    Regards,
    Philippe

Maybe you are looking for