Report Document Preview Error

Hi All,
Please how do i resolve this following  error:
The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.
This comes up when i run my application online but doesn't occur when i run it during design.
The application was developed with VS2010 with Crystal Report 2010, and hosted on a 64bit Window server 2008 Server.
I have installed the both VS2010 and Crystal Report on the server with no result.
Anyone, Everyone, please help.
KayMan

Hi Ludek
I disabled the error traps in the app and this what the error reported in full. Any clue?
Server Error in '/zamfara' Application.
Retrieving the COM class factory for component with CLSID {4DB2E2BB-78E6-4AEA-BEFB-FDAAB610FD1B} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {4DB2E2BB-78E6-4AEA-BEFB-FDAAB610FD1B} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically \ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Source Error:
Line 41:         datAdapter.Fill(dsSet, SelectTable)
Line 42:
Line 43:         Dim CRS As New ReportDocument
Line 44:         CRS.Load(ReportName)
Line 45:         CRS.SetDatabaseLogon("sa", "Kayuzz1*")
Source File: C:\inetpub\vhosts\estarsnet.net\httpdocs\zamfara\ReportPage.aspx.vb    Line: 43
Stack Trace:
[UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {4DB2E2BB-78E6-4AEA-BEFB-FDAAB610FD1B} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).]
   CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +193
[TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.]
   CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +44
   ReportPage.Page_Load(Object sender, EventArgs e) in C:\inetpub\vhosts\estarsnet.net\httpdocs\zamfara\ReportPage.aspx.vb:43
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

Similar Messages

  • Crystal report addon : preview error

    Hi All,
    The question has been answered a number of times on SDN but the workaround does not work in my case. please guide.:
    I am working on 2007 B PL 10. I have installed crystal report 2008 for B1 downloaded from SAP portal. I have installed crystal report addon. it gets connected but when I preview the report it gives me the error :
    *Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=12.0.2000.0, Culture=neutral,
    PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.*
    I have .net framework 1.0, 2.0 and 3.0 installed. I have gone through the demo of crytal report installation and publishing and ,have installed in the same order as shown. As instructed there, if I have crystal 2008 installed , I dont need to install the crystal report runtime. but if I dont have it, from where should i download it? is it from the following thread ? :
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567
    Thanks,
    Binita
    Edited by: Binita  Joshi on Jan 28, 2010 7:57 AM

    Thanks Nazar. i downloaded it and on running it gives me the error : this installation package could not be opened. contact the software vendor to verify that this is a valid windows installation package.
    can anybody tell from where you guys get this 'CRRuntime_12_0_mlb.exe'??

  • XML report rtf preview error

    Hi
    I have created a rtf layout for my excel report with xml tags.
    I have loaded the xml data and tried to view the preview data but i am getting the following error.
    Windows cannot find 'C:\PROGRA~1\Oracle\XML'.Make sure you typed the
    name correctly, and then try again. To search for a file, click the
    start button and then click Search
    Could any one please help me.
    Thanks,
    Malla

    Malla,
    You mean path,do i need to copy the rtf and xml files to that folderIf the files are not in that directory, copy it and check then.
    When you load the XML data, you should see the browse window and select the file, so is this what you are doing?
    Do you get the "Data loaded successfully" message?
    You may also review this tutorial and verify the steps.
    Creating Reports in Oracle E-Business Suite Using XML Publisher
    http://www.oracle.com/technology/obe/obe_bi/xmlp_ebiz/index.html
    Regards,
    Hussein

  • The report terminated with error:  REP-110: File test2. cannot be opened. REP-1070: An error occurred while opening or saving a document.

    Hi,
    I'm getting the below error for reports.
    The report terminated with error:
    REP-110: File test2. cannot be opened. REP-1070: An error occurred while opening or saving a document. REP-0110: File test2. cannot be opened. .
    When checked Environment using url 'http://host:port/reports/rwservlet/showenv?server=your_repserver_name"
    found below
    ==================================================
    Reports Servlet Environment Variables 11.1.1.4.0
    Security Mode Non-secure
    HTTP Environment Variables 11.1.1.4.0
    SERVER_NAME   09.14.4.41
    SERVER_PORT   8888
    SCRIPT_NAME   /rwservlet
    SERVER_PROTOCOL   HTTP/1.1
    SERVER_SOFTWARE   undefined
    GATEWAY_INTERFACE   undefined
    SERVER_PORT_SECURE   undefined
    ACCEPT   image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
    REQUEST_METHOD   GET
    REMOTE_HOST   test-wam-app
    REMOTE_ADDR   09.14.4.41
    REMOTE_USER   undefined
    AUTH_TYPE   undefined
    PATH_INFO   showenv
    QUERY_STRING   server=RptSvr_test-wam-app_wamtest
    PATH_TRANSLATED   undefined
    CONTENT_LENGTH   undefined
    CONTENT_TYPE   undefined
    AUTHORIZATION   undefined
    USER-AGENT   Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; InfoPath.3; MS-RTC LM 8)
    REMOTE_IDENT   undefined
    REFERER   undefined
    Oracle Reports Services - Servlet Environment Variables  Select to jump to the top of the page  Return to Top
    KeyMapFile   /u03/apptest/FMW_11.1.1/user_projects/domains/WamTest/config/fmwconfig/servers/WLS_REPORTS/applications/reports_11.1.1.2.0/configuration/cgicmd.dat
    DBAUTH   /u03/apptest/FMW_11.1.1/apphome/reports/templates/rwdbauth.htm
    SYSAUTH   /u03/apptest/FMW_11.1.1/apphome/reports/templates/rwsysauth.htm
    server   rep_wls_reports_test-wam-app_wamtest1
    DIAGNOSTIC   yes
    ERRORTEMPLATE   /u03/apptest/FMW_11.1.1/apphome/reports/templates/rwerror.htm
    SERVER_IN_PROCESS   yes
    COOKIEEXPIRE   30
    ENCRYPTIONKEY   reports9i
    DIAGHEADTAGS   undefined
    DIAGBODYTAGS   undefined
    HELPURL   undefined
    RELOAD_KEYMAP   undefined
    IMAGEURL   http://09.14.4.41:8888/reports/rwservlet 
    SINGLESIGNON   no
    Oracle Reports Services - Server and Engine Environment Variables  Select to jump to the top of the page  Return to Top
    PATH   /u01/wamtest/FMW_11.1.1/apphome/jdk/bin:/u01/wamtest/FMW_11.1.1/apphome/bin:/u01/wamtest/FMW_11.1.1/apphome/jdk/bin:/u01/wamtest/FMW_11.1.1/apphome/bin:/u01/wamtest/FMW_11.1.1/apphome/bin:/u01/wamtest/FMW_11.1.1/apphome/bin:/u01/java/jdk1.6.0_23/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
    DISPLAY  
    LD_LIBRARY_PATH   /u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64/server:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/../lib/amd64:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64/native_threads:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64:/u01/wamtest/FMW_11.1.1/apphome/lib:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64/server:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64/native_threads:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64:/u01/wamtest/FMW_11.1.1/apphome/lib:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64/server:/u01/wamtest/FMW_11.1.1/apphome/opmn/lib:/u01/wamtest/FMW_11.1.1/apphome/lib
    ORACLE_HOME   /u01/wamtest/FMW_11.1.1/apphome
    TNS_ADMIN   /u01/wamtest/FMW_11.1.1/instance1/config
    NLS_LANG   AMERICAN_AMERICA.WE8ISO8859P1
    USER_NLS_LANG  
    RW   /u01/wamtest/FMW_11.1.1/apphome/reports
    REPORTS_PATH   /u01/wamtest/FMW_11.1.1/apphome/reports/templates:/u01/wamtest/FMW_11.1.1/apphome/reports/samples/demo:/u01/wamtest/FMW_11.1.1/apphome/reports/integ:/u01/wamtest/FMW_11.1.1/apphome/reports/printers:/u01/wamtest/FMW_11.1.1/instance1/reports/fonts:/u01/wamtest/FMW_11.1.1/apphome/reports/templates:/u01/wamtest/FMW_11.1.1/apphome/reports/samples/demo:/u01/wamtest/FMW_11.1.1/apphome/reports/integ:/u01/wamtest/FMW_11.1.1/apphome/reports/printers:/u01/wamtest/FMW_11.1.1/instance1/reports/fonts:
    REPORTS_TMP   /tmp
    REPORTS_TAGLIB_URI   /WEB-INF/lib/reports_tld.jar
    java.class.path   /u01/wamtest/FMW_11.1.1/apphome/reports/jlib/rwrun.jar
    sourceDir  
    tempDir  
    useDataCache  
    ignoreDataParameter
    =========================================================================
    ORACLE_HOME is on mount point u03, checked config.properties but no mention of mount point /u01.
    Dont know from where /u01 came. Could you please help me re configuring the env pointing to /u03.
    Reports server is up though without any issues.
    Regards,
    Djay

    Ensure that the report name is correct. Also ensure that the report exist in REPORTS_PATH environment variable. Otherwise run the report including the reports path.
    E.g.
    report=<reports directory>/test2.rdf

  • Report Admin - Print Preview Error

    In reports admin, I get the following error when I select print preview:error marshalling arguments; nested exception is; java.net.SocketException; Socket write failed.Any ideas?

    Hi
    Are you using <b>crystal wave</b>  a third party add  or the crystal report add on provided by SAP.
    1.Are all your user facing same issue ?
    2.Did it happen to only item or it is happening to all ?
    So far looks to me ,some fields have been deleted from template. It might be the cause .
    Hard to troubleshoot if it is coming from addon ...
    Well try restoring a default template (if you have ) or some other layout to test the issue.
    Thank you
    Bishal

  • Exchange Office Web Apps Preview Does not work in OWA. An error occurred while the document preview was being created

    Hi,
    I have managed to configure intergration between Office Web App server 2013 and Exchange 2013 OWA.
    I have created a test users Test1 and Test 2. I have given full access on Test2 mailbox to user test 1.
    When I login to owa for user test1 and preview the attachment it works fine.
    However when I use "Open another mailbox" in OWA and open test2 mailbox and try to preview the attachments in test2 inbox it errors as
    " An error occurred while the document preview was being created. Please try again later " as follows
    I am new to office web apps server 2013 and implemented it first time. Can anyone suggest resolutions or troubleshooting ?

    Hi,
    To narrow down the cause, I’d like to recommend the following troubleshooting:
    1. Does the error appear when you directly access test 2 mailbox through OWA?
    2. Check if there is 141 error in your event log.
    3. Check whether Office web app server connects with Exchange server when the issue happens.
    Access the URL: https://hostname/hosting/discovery
    4. Grant full access permission again and check the result.
    For more information about Office web app integration with Exchange, please refer to the following article:
    http://www.msexchange.org/articles-tutorials/exchange-server-2013/management-administration/exchange-2013-office-web-apps-server-integration.html
    If you have any question, please feel free to let me know.
    Thanks,
    Angela Shi
    TechNet Community Support

  • Importing After Effects document to Premiere Pro errors: "The importer reported a generic error."

    I´m using Premiere Pro CC ver 2014.1. and After Effets 2014.1.1. in OS X Yosemite. I can't import After Effects project to Premiere.
    There is always same error message: "The importer reported a generic error."
    I have tryed to save After document several different names and greate new ones. Always same error. Whats wrong in my workflow?

    Okay so I've searched around most of this forum and as much of Google as I could find - I have found similar problems, but nothing exactly the same; and none of the solutions I've found have worked for me. I've seen a lot of people having trouble connecting to the DL server on the file-selection window, but I don't even get that far - an error message just pops up in the middle of my screen - and my error doesn't mention a server, just that it can't connect to AE DL.
    I changed firewall software (which I've wanted to do for months, anyway) and still to no avail.
    As for the "The importer reported a generic error" problem also, I can't find any problems or solutions with After Effects files not being able to be imported.

  • RAS error - Cannot open report document. --- 0x80004005

    I am using RAS to open and examine a number of Crystal Reports and everything is working fine with the exception of 1 report.  I can publish this report to a different BOE system and examine it fine without error using the same code, so I am trying to understand why the process is failing.  The specific error thrown is:
    com.crystaldecisions.sdk.occa.managedreports.ras.internal.ManagedRASException: Cannot open report document. --- 0x80004005
    Unspecified error
    cause:com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: 0x80004005
    Unspecified error---- Error code:-2147467259 Error code name:failed
    detail: 0x80004005
    Unspecified error
         at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.openDocument(Unknown Source)
    Any insight as to why this error is thrown for this specific report?

    The message shows that this specific report cannot be accessed.
    Try to re-check the specific report both in the crystalreport designer and Infoview before using the code.
    Thanks

  • When trying to import music files I get a error message that says "importer reported a generic error" I'm using windows 7, DellPC, installed premiere elements 13 2 days ago. Also when previewing and editing video,screen looks great but when I transfer to

    When trying to import music files I get an error message Thea says "importer reported a generic error". Also when editing video, screen views look great but when I transfer to PC or flash drive video quality is very poor. Any suggestions?

    chansen232
    Premiere Elements 13 on Windows 7 (presumed 64 bit).....
    1. Music files and error message...are these music files from iTunes? If so, convert them to .wav in iTunes to convert them to wav version, and then import the .wav version into Premiere Elements 13 project using Premiere Elements 13 Expert workspace's Add Media/Files and Folders/Project Assets from where you drag the wav version to the Soundtrack.
    The following are the instructions for the iTunes converting
    http://support.apple.com/en-us/HT1550
    If any problems with the instructions, please let me know, and I will go through them with you.
    2. How you set up the project and the export settings that you select greatly influence your end product result.
    a. What are the properties of the source media?
    b. What project preset did you (manually) or the project (automatically) set to match the properties of the source media.
    (If you do not know, please tell us what you see for the readings of Editing Mode, Timebase, Frame Size, Pixel Aspect Ratio - even
    if the fields look grayed out.)
    c. For your export...Publish+Share/Computer/and then what? And what preset? Did you use the default settings of the preset or did you
    customize the export settings of the preset under the preset's Advanced Button/Video Tab and Audio Tab?
    Let us start here and then decide what next.
    Thanks.
    ATR

  • Adobe document service error: SOAP Runtime Exception

    Hello,
    I am trying to test an Adobe Form created using the ABAP workbench SFP transaction, and getting the following error.
    <b>Adobe document services error: SOAP Runtime Exception: CSoapExceptionTransport : (100101)</b>
    These are the steps I am using.
    1. Call SFP transaction and select an ADOBE Form.
    2. Function key F8 to test
    3. Select the Output device and do "Print Preview"
    Our configuration is : WAS 6.40 SP11 and corresponding ADS level. We used the standard SAP ADS configuration guide to setup.
    Thanks in advance for any reply.
    Regards,
    PK

    Hi PK
    it looks like you have a problem with either your Adobe document services or your RFC configuration. In the current ADS Configuration Guide in the SAP Service Marketplace, you find a configuration quick test in chapter 3.4. The results should tell you if this is the issue.
    There are 2 tests you can run:
    A. Checking the User and Password
    This is a small test where you can check that your entries for user, security role, and passwords are correct.
    Procedure:
    1. Enter the following URL in your web browser:
    http://<server>:<port>/AdobeDocumentServices/Config
    where <server> is the name of the J2EE engine where the Adobe document services are installed and <port> is the port of the J2EE engine.
    Note that the entries in the URL are case-sensitive.
    2. The web page of the web service AdobeDocumentServices is displayed. Choose Test.
    3. Choose rpdata(test.…) .
    4. Choose the Send button without entering any parameters.
    5. Enter the same user name and password as given in the configuration steps earlier.
    6. Choose Submit.
    If the configuration is correct, you get the information about the Version number in the response area.
    If the configuration settings are not correct, the page does not change and Submit still appears.
    B. Checking the ABAP Connection
    This is a small test for checking the RFC destination you have created.
    Procedure
    1. Log on to your SAP system.
    2. Call transaction SE38
    3. Enter the name of the test report: FP_PDF_TEST_OO.
    4. Choose Execute (F8)
    If the configuration is correct, you get the Version Information.
    If the configuration is not correct, you get a dialog box with fields for user and password. Check your configuration settings and also the entries you made when creating the ABAP connection.
    Hope this helps.
    Kind regards,
    Markus Meisl
    SAP NetWeaver Product Management

  • Report Generation Toolkit Error

    I  have an application that generates multiple excel spreadsheets each containing a table and four graphs.  This has been working fine for three months but I am now getting error when generating the reports.  The source of the error is in the Excel_create_workbook as indicated on the attached picture.  I am passing in a template name for my excel reports.  The error code (-2147352571) states a type mismatch.  The file path to my template is a constant so I can't see how sometimes I get a type mismatch and other times I don't.
    Any help on this would be greatly appreciated.
    Thank you,
    AJL
    Attachments:
    create_Workbook error.JPG ‏269 KB

    Thanks for the reply, however, this VI is part of the Report Generation Toolkit so I don't want to have to modified NI's code if possible.  I did try your suggestion without saving the VI and I still got the same error. 
    Any other ideas? 
    BTW - I encountered this problem first in an executable but have since seen the error in the development code.
    Does anyone know if there is a limit to how many times you can create an excel document from LabVIEW?  I wouldn't think so but the error seems to happen if I try to create several (more then five usually) documents at a time. 
    Thanks in advance
    AJL

  • Print crystal report without preview

    Dear All,
    i want print crystal report without preview.
    when i click print button i want show printer list install in that computer.
    so user can choose which printer that use to print. I means like if we printing document from office, we can choose the printer.
    how that i can do that?
    please help.
    best regards,
    Surbakti

    Since this issue has little to do with sql server, I suggest you post your question to a forum for CR
    SAP CR community

  • Stock variance report Crashes with error code REP-56048

    SR : 6990718.992
    gtcr : http://qmon.oraclecorp.com/qmon3/quickpicks.pl?t=t&q=6990718.992
    Problem Statement : When the user is trying to generate report for Stock variance report from Oracle Retail Merchandising System the report crashes with error code REP-56048.
    The steps to reproduce are specific to Oracle Retail Merchandising system application and hence I have not mentioned here.
    The REP-56048 error seems to be generic. Could you please advise me on this issue.
    Thanks & Regards,
    Sameer

    You can review the following Oracle Metalink Document;
    Comprehensive REP-56048 Troubleshooting and Overview Guide: Doc ID: Note:285281.1
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:88153902823984055::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,285281.1,1,1,1,helvetica
    Hope it would be useful.
    Adith

  • Report Document not show on Crystal Report Viewer in C#

    My program is modified from VB.NET. Now I struck with Crystal Report that Crystal Report Viewer didn't show Report Document.
    Printing code is composed of two forms. One assign parameters and objects need. Other is Crystal Report Viewer form, CrystalReportForm. Last one run report by parameter from the first.
    When run this code that it didn't found any error but the problem is no report show on Crystal Report Viewer on second form. It just blank Crystal Report Viewer. There arm't any message response.
    Here is my code.
    // report caller form.
    private void Print()
       CrystalReportForm rptForm = new CrystalReportForm();
       string[] strtbl;
      strtbl = new string[1];
       string[] strqry;
      strqry = new string[1];
       // prepare var
       string myqry;
       string myrpt;
       // Pass The Table That you used in the crystal Report
      strtbl[0] = "r_receipts";
       // Pass the Query
      myqry = "SELECT * FROM r_receipts";
      myrpt = "rptReceipts.rpt";
      strqry[0] = myqry;
       //Pass For Mdi True
      rptForm.MdiParent = this.ParentForm;
      rptForm.ViewReport(myrpt, strtbl, strqry, "");
       //Parameter Value It is Optional
      rptForm.Show();
    // Crytal Report Viewer form.
    public void ViewReport(string ReportName , string[] TableName, string[] QueryString , string Parameter = "")
       //Me.MdiParent = mainpage;
       if (TableName.Length  != QueryString.Length  )
       MessageBox.Show("Passed Variable Are Not Correct", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
       return;
       CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
       CrystalDecisions.Windows.Forms.CrystalReportViewer crv  = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
      crv.ActiveViewIndex = 0;
      crv.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
      crv.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
      crv.Dock = System.Windows.Forms.DockStyle.Fill;
      crv.Location = new System.Drawing.Point(0, 0);
      crv.Name = "CrystalReportViewer";
       MySqlDataAdapter at =new MySqlDataAdapter();
       DataSet ds = new DataSet();
       for (int i = 0; i < TableName.Length; i++)
      at = GetDataAdeptor(QueryString[i]);
      at.Fill(ds, TableName[i]);
       string rptPath  = "";
      rptPath = Application.StartupPath + "\\" + ReportName;
      rpt.Load(rptPath);
      rpt.SetDataSource(ds);
       if (Parameter != "")
      rpt.SetParameterValue(0, Parameter);
      crv.ReportSource = rpt;
      crv.Refresh();
       //CrystalReportViewer.DataBind();
       //Me.Panel1.Controls.Add(CrystalReportViewer);
       Panel panel1 = new Panel();
      panel1.Controls.Add(crv);

    Hi Bhushan,
    It's not yet fixed. My dataset (ds) can't bine to DataGridView as
    DataGridView1.DataSource = ds
    But it could do like this
    DataGridView1.DataSource = ds.Tables[0];
    When I bine to Crystal Report Viewer setdatasource
    CrystalReportViewer1.setdatasource = ds.Tables[0];
    It still not work, anyway you suggest let me in the right way. I very confuse the thing I fix to bine to DataGridView
    Thank,
    Chaiwat

  • Exporting report to PDF error

    This code has worked for years, but now I'm getting the following error when programmatically exporting a report to PDF:
    "File does not begin with %PDF-"
    My environment info:
    Crystal Reports Developer XI Release 2 sp1
    VS 2005 - .NET 2.0
    IIS 6
    Few lines of code used to export:
    Response.ClearContent()
    Response.ClearHeaders()
    Response.ContentType = "application/pdf"
    ' Export the document to PDF
    oRpt.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, False, "")
    Response.Flush()
    Response.Close()
    One of the common answers that I've seen is uncheck the "display in browser" option in Acrobat, but that doesn't work and isn't really a viable solution anyway. I'm looking for a real permanent solution if one exists. TIA.
    Michael

    Hi folks, you're never gonna guess in a million years what the issue was. Yes, I finally found the problem. In my code where the db connection properties are set for the Crystal report document, it gets the values from the app's db connection string in the web.config (the one that ISD creates). It parses that string to set the properties, but it doesn't handle a "trusted connection" setting in that string. Well, some time ago, I set that db connection string to a "trusted connection" setting (to test something), so the app continued to work fine, and I never set it back to a fixed user id and pw. So, the actual problem was that the Crystal report was encountering a db connection problem, but it was spitting out a bogus message of "File does not begin with %PDF-". The strange thing, that isn't resolved yet, is why is the "problem" not throwing an exception or causing an error prior to the export/stream process. The only logical conclusion is that Crystal doesn't attempt to connect to the database until the export/stream process begins, and then it's too late and spits out an error message in the stream that is not in a proper PDF file format.
    These issues are the kinda things that make you want to throw your monitor out the window. Once again, my love/hate relationship with Crystal Reports over the past 12 years has gone to the "hate" side. Thanks for your willingness to help.
    BTW, the way I figured it out was to use the CrystalReportViewer and run the report - sure enough, it displayed the db connection error message, which led me down the right path.
    Edited by: Michael Sumption on Aug 7, 2008 5:54 PM

Maybe you are looking for

  • How do I get Windows 8 on a usb to use Bootcamp on my MBA?

    Just wondering because I am thinking about getting Windows 8 for my MBA. I figured if I had a MBP I could just put a Windows 8 disc in and go from there but I cant do that with a MBA. So it might sound like a stupid question, but if any one can help

  • My Imac 24" alu screen will not go to sleep!

    Just got my new Imac Alu 24" 2,8 Ghz with the Geforce card. In energy savings i set my monitor to go to sleep after 10 min. But nothing happens! Any tips on this issue? My Imac will run 24h a day in this is not good! Message was edited by: drifter750

  • No option to download apps on iPad Air

    I'm logged into my itunes account, but none of the apps in the app store have the "free" or "$.$$" button next to them giving me the option to download.  I've tried restarting the app store, and rebooting the iPad Air.

  • SPA203D Dect 2 - 10 Not picking up SIP credentials from base station

    Hi There Installing 4 x SPA203D Dect handsets tied to the base station SPA232D.  All handsets are registered and sync'ing with the base station but the SIP credentials are being populated from the quick setup (Dect 1). Under the Voice menu each Dect

  • How do i resize a picture under iPhoto?

    help, i hate this stupid thing