Report Document.Load Method Hangs

The following code is an exceprt from an asp.net web application we developed.  The report file (TestReport.rpt) file was designed using a 'manually' created schema (xsd) that mirrors the structure of pApptDT. The .xsd file has no DB connection info stored in it.  NOTE: the DBServiceORA and Registrations are base and middle tier classes respectively that do the heavy lifting.
protected void Page_Load(object sender, EventArgs e)
    mDBService = (DBServiceORA)Session["DBService"];
    this.BuildReport();
protected void BuildReport()
    ReportDocument pReport = new ReportDocument();
    try
        DataTable pApptDT = Registrations.GetApptSmry (mDBService);
        string pReportFile = Server.MapPath(Global.WEB_ROOT + @"/Reports_Appointment/TestReport.rpt");
        pReport.Load(pReportFile);
        pReport.SetDataSource(pApptDT);
        MemoryStream pStream = (MemoryStream)pReport.ExportToStream(ExportFormatType.PortableDocFormat);
        HttpContext.Current.Response.Clear();
        HttpContext.Current.Response.ContentType = "application/pdf";
        HttpContext.Current.Response.AddHeader("Content-Disposition", "inline; filename=Report.pdf");
        HttpContext.Current.Response.BinaryWrite(pStream.ToArray());
    catch (Exception ex)
        Response.Write("<p>" + ex.Message + "</p><p>" + ex.StackTrace + "</p>");
    finally
        pReport.Close();
        pReport.Dispose();
This code has worked for over a year in our VS2008 development environment.  We use IIS, .Net 3.5, and ODP.Net with an Oracle 10g DB.  In our development environment we use IIS (not the built-in web server) which uses Windows integrated security.   My company recently pushed down new global policies to all desktops.  These new ploicies affected Local Security Policies and permissions on some files in the \windows\system32 directory.  When stepping through the code with the debugger, the application now hangs on the pReport.Load method.
I need help in understanding the internals of the CR ReportDocument.Load method. We think the problem is somehow associated with CR trying to connect to a non-existent DB using some protocol that got affected by the policy changes. Can anyone shed some light on our problem, in particular what's happening inside the Load method.
Thanks
Dan

Tried several options.
OPTION 1:
Created new VS2008 "Crystal Reports Application".
'Manually' created schema (Activity.xsd) containing no DB connection information.
Created Activity.rpt (that referenced the above Activity.xsd file).
Created our 'normal' aspx page with code as follows:.
DataTable pActivityDT = mDBService.GetDataTable("select * from E_ACT;");
string pReportFile = Server.MapPath(@"/CRTestApp1/Activity.rpt");
pReport.Load(pReportFile);
pReport.SetDataSource(pActivityDT);
MemoryStream pStream = (MemoryStream)pReport.ExportToStream(ExportFormatType.PortableDocFormat);
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.ContentType = "application/pdf";
HttpContext.Current.Response.AddHeader("Content-Disposition", "inline; filename=Report.pdf");
HttpContext.Current.Response.BinaryWrite(pStream.ToArray());
First attempt at displaying the above page results in making it past the pReport.Load but hung on the pReport.SetDataSource.  All subsequent attempts hung on the pReport.Load method. (?????)
OPTION 2:
Usng the VS-generated Default page (which included the CR Viewer) the ReportSource was set declaratively as follows:
<form id="form1" runat="server">
    <div>
        <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True"
            Height="1039px" ReportSourceID="CrystalReportSource1" Width="901px" />
        <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
            <Report FileName="Activity.rpt">
            </Report>
        </CR:CrystalReportSource>
    </div>
</form>
Attempting to display the above page results in the application hanging.  I also tried setting the source to a non-existant file just to see if an exception would be thrown.  I got the expected 'Load report Failed' message followed by parital rendering of the CR viewer.
OPTION 3:
The report displays as expected when a new connection (pproviding the DB login credentials) is created in the CR Database Expert dialog screens and the Activity (E_ACT) table is selected and used as the datasource for the report.  With this option, the designer displays data from the Activity table in the Main Report Preview screen.  When running the application the CR Viewer prompts for DB login credentails.
Hope this  sheds some light on the issue we're having.
Dan
Edited by: Dan Cannon on Dec 10, 2009 7:23 PM

Similar Messages

  • In the ReportDocument.Load method it tries to connect using the using the connection information embedded in the Report File

    Post Author: bhaveshbusa
    CA Forum: Crystal Reports
    In the ReportDocument.Load method it tries to connect using the using the connection information embedded in the Report File. When the application calls ReportDocument.Load(reportFileName). This
    tries to connect to the database using the connection information embedded in
    the "reportFileName". This was only realised on checking the ODBC Trace
    Log. The connection itself is not a problem. The problem is that the embedded
    connection information is related to OLD production system. And failed
    connections had raised some concerns.
    Note: I am using
    SetDataSource to populate the data for the report. So I don't need the
    connection.
    Is there any way I
    can disable this auto-connect?
    Thanks and
    regards,
    Bhavesh

    960738 wrote:
    I need a help in answering one of the issue encountered last week.
    I have created a database link and tried to access the information from a table using the program written in another language. The password provided was incorrect for that user while creating database link. So we expected that,while retrieving the data, Database connection has to be errored out as password provided is incorrrect.
    But unfortunately, user account was locked out. When i checked with DBAs they mentioned that it tries to connect 16 ports with in a min of time.we were shocked as it STOPS another scheduled jobs with that user. and affects production badly.
    As per the program, it has to connect only one time and yesterday we tried to execute the program in DBAs observation and it errored out as expected. Didn't tried for multiple ports.
    Now the question is, WHY the database connection established 16 times last week and caused user account locked. DBAs are unable to answer it. Any EXPERTs opinion on this would greatly appreciated.
    I have verified managing ports in oracle documentation, it was mentioned that if one port is busy it will try to connect to another port in the range of ports mentioned during the installtion. DBAs verified ports related file and it was blank. and they are not agreeing with this reason. Please HELP me in finding the correct REASON for this.
    is it a NETWORK issue or issue with DATABASE SERVER only?
    Thanks
    SSP
    Edited by: 960738 on Sep 22, 2012 9:13 PMDBLINK is 100% oblivious to the fact any port exists.
    DBLINK only contains username, password & TNS Alias.
    can you post actual SQL & results?

  • Flash CS6 hangs on document load/creation.

         I can start Flash Ok, but as soon as I select a document to open, or create a new document, Flash just hangs indefinitely.
    I’m running windows 8.1 on a Bootcamp partition of a Mac Book Pro. I work in development so there maybe a conflict with one of the SDK packages I’m using But I have no way of knowing for sure.
    I have uninstalled all java SDKs but to no avail. I should also mention this does not happen with Flash CC.
    Any ideas would be very helpful, as I’ve already spent about a day to trying to trouble shoot this.

    reset your preferences by holding down shift-ctrl-alt while starting flash.  you'll see a confirmation dialog if done correctly.
    if resetting the preferences fails, uninstall, clean and reinstall per Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    if you need to manually reset the flash preferences, Re-create preferences

  • Parse method hangs

    I am trying to to parse a file using DocumentBuilder. The parse() method hangs for no reason. There are no errors or exceptions thrown. I even used a StringReader but in vain. Pl see code below:
    The file is read correctly and i could even print the XML string out.
    System.out.println("Parsing XML file from performParsing():" +s);
              Document doc = null;
              DocumentBuilderFactory factory = null;
              DocumentBuilder builder = null;
              try{
                   factory = DocumentBuilderFactory.newInstance();
                   System.out.println("Parsing XML factory:" +factory);
                   builder = factory.newDocumentBuilder();
                   System.out.println("Parsing XML builder:" +builder);
                   URL url = new URL(s);
                   URLConnection urlConnection = url.openConnection();
                   InputStream in = urlConnection.getInputStream();
                   String XMLStr = getStringReaderFromFile(in); //private method that gives a string
                   StringReader stReader = new StringReader(XMLStr);
                   InputSource ins = new InputSource(stReader);
         doc = builder.parse(ins);--->IT HANGS HERE

    Not an expert on this but presumably you have the properties set up correctly.
    From javadoc ...
    DocumentBuilderFactory uses the system property javax.xml.parsers.XmlDocumentParserFactory to find the class to load. So you can change the parser by calling:
    System.setProperty("javax.xml.parsers.XmlDocumentParserFactory",
    "com.foo.myFactory");

  • Creating a new reports document

    Hi everyone,
    Iu2019m having an issue using In-Proc RAS when creating a new report document in .NET. The following code (C#) will fail (Saying that it requires a Loaded RPT file to do anything against that member)u2026
    CrystalDecisions.CrystalReports.Engine.ReportDocument myTest = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    myTest.ReportClientDocument.New()
    How are you suppose to create a new blank document using the CrystalReports engine? The only way I can do anything with the above object is to actually load a .RPT file. Itu2019s different then when using the RAS SDK which goes like:
    ReportClientDocument objClientDoc = new ReportClientDocument(); //this is a ReportAppServer object
    u2026Set The Report Server Nameu2026
    objClientDoc.New();
    Thanks for the help!
    Peter

    Hi Peter,
    If you are using ReportDocument object then you need to load the object with a report name.
    //define the object
    ReportDocument rdocument = new ReportDocument();
    //load the report
    rDocument.Load(path of the report);
    //View the report
    CrystalReportViewer1.ReportSource=rdoc;
    However if you use the RAS then you need to use the ReportClient document object for it.
    //define the object
    CrystalDecisions.CrystalReports.Engine.ReportDocument rdoc1 = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    // assign it to the reportclient object
    ISCDReportClientDocument rClient1 = rdoc1.ReportClientDocument;
    //Load the report
    rdoc1.Load(path of the report);
    //View the report.
    crystalReportViewer1.ReportSource = rdoc1;
    So I do not see any reason why we would need the New() method.
    Does that help?
    AG.

  • 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

  • Dequeue method hangs

    All,
    on our sun solaris OS 5.6 we run oracle database server 8.1.6 and AQ server 8.1.6. We use jdbc thin (classes12.zip) oracle8i 8.1.6.2.0 JDBC Driver for jdk 1.2.x .
    We use the AQ api from our java backend to dequeue messages from the AQ server. It happens time to time that this method hangs. The error is hard to reproduce and does happen after the backend has been running for a while, usually a few hours.
    Any hints for the reason of this are greatly appreciated.
    Thanks Ben: [email protected]
    Below is the stack thrace of the thread that hangs:
    Thread-2:
    [1] java.net.SocketInputStream.socketRead (native method)
    [2] java.net.SocketInputStream.read (SocketInputStream:90)
    [3] oracle.net.ns.Packet.receive (pc 32)
    [4] oracle.net.ns.NetInputStream.getNextPacket (pc 48)
    [5] oracle.net.ns.NetInputStream.read (pc 21)
    [6] oracle.net.ns.NetInputStream.read (pc 5)
    [7] oracle.net.ns.NetInputStream.read (pc 6)
    [8] oracle.jdbc.ttc7.MAREngine.unmarshalUB1 (MAREngine:718)
    [9] oracle.jdbc.ttc7.MAREngine.unmarshalSB1 (MAREngine:690)
    [10] oracle.jdbc.ttc7.Oall7.receive (Oall7:372)
    [11] oracle.jdbc.ttc7.TTC7Protocol.doOall7 (TTC7Protocol:1330)
    [12] oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch (TTC7Protocol:757)
    [13] oracle.jdbc.driver.OracleStatement.executeNonQuery (OracleStatement:1313)
    [14] oracle.jdbc.driver.OracleStatement.doExecuteOther (OracleStatement:1232)
    [15] oracle.jdbc.driver.OracleStatement.doExecuteWithBatch (OracleStatement:1353)
    [16] oracle.jdbc.driver.OracleStatement.doExecute (OracleStatement:1760)
    [17] oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout (OracleStatement:1807)
    [18] oracle.jdbc.driver.OraclePreparedStatement.executeUpdate (OraclePreparedStatement:332)
    [19] oracle.jdbc.driver.OraclePreparedStatement.executeQuery (OraclePreparedStatement:283)
    [20] oracle.AQ.AQOracleQueue.dequeue (AQOracleQueue:1356)
    [21] oracle.AQ.AQOracleQueue.dequeue (AQOracleQueue:1132)

    Folks,
    I have read this post with great interest related to the AQ dequeue problems reported. We got the same problem and I am wondering that whether you have found the solution to the problem.
    Your help is highly appreciated.
    Thanks,
    Yibing

  • Document splitting method

    Hi,
    We set document splitting method at the client level. what if we would liek to change it later?
    Suppose for one company segment reporting is not required and they have not assigned the scenario of "segment updation". Later if company becoems eligible for "segment reporting" can we add the scenario to the ledger and updating profit centres?
    thank you
    - Vedavatee

    Hi
    Expert,
    Segement Reporting:
    1. Select the fields for which you require a complete balance statement and for which you cannot accept any inaccuracies through unassigned postings.
    2. f the indicator is set, then all postings where no value is set for the specified field after document splitting are rejected with an error message.

  • Crystal Reports 2008 Loading Failed Error in Windows 7

    Hi,
    We are using Crystal Reports 2008 in our application. These are working fine in XP Professional OS. But the Same code is not working in Windows 7 operating system. When I debug, I found report Load is failing. Error is at below line of code.
    CR.Load( "D:\Sample_Win7.rpt", OpenReportMethod.OpenReportByTempCopy)  ' CR is Report Document
    Can any one suggest me, what settings are required in Win 7 OS to get out of this issue.
    Thanks inadvance,
    Kiran

    Hi,
    Thanks for the reply. Here is the exact issue description.
    CrystalDecisions.Shared.CrystalReportsException was caught
      Message="Load report failed."
      Source="CrystalDecisions.CrystalReports.Engine"
      StackTrace:
           at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()    at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)    at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod)    at SampleReportInWin7.Form1.Button1_Click(Object sender, EventArgs e) in D:\Brookledge SW\SampleReportInWin7\Form1.vb:line 22
      InnerException: System.Runtime.InteropServices.COMException
           ErrorCode=-2147467259
           Message="The system cannot find the path specified. "
           Source="Analysis Server"
           StackTrace:
                at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
           InnerException:
    Thanks for your time,
    Kiran

  • Error in report generation-Load report failed

    I have installed crystal reports  for VS2005 runtime in my live environment.When i try to load the report file from a .Net page i am getting the error'Error in Report generation-Load report failed'.
    This works fine in development and testing but when moved to production we are having issues.
    I believe i have a workaround i.e i need to open the rpt in a VS 2005 environment and re-write the connection string again.This fix had worked in development and testing when we had the same issue.
    But not sure if this is a known issue with crystal reports and if so do we have any hot fixes for the same.
    Please help.

    Hi Don,
    The reason why i posted the item on 'data Connectivity issues' is because i suspect the problem is with the connection string.Though i had provided the correct connection string,re-writing the connection string with the same info might help to fix the issue with loading the report.
    Does it mean that there is a problem in the connectivity?
    I have a risk here that i cant re-write the connection string..i.e to open the RPT file in VS2005 and bind it.The production web server & database server sits in a  third party environment and it is not in the company network.So i cant connect to this server to re-write from any other severs in the network.
    Is there any fix which can applied to the server to get this issue resolved?
    Cheers
    Nithya.

  • Desktop Manager Will not Load. Hangs on splash screen when loading, then crashes

    My desktop manager is not loading, and hangs whenever it is attempted to load. I have done a clean uninstall, removed rim registry entries, and did a fresh download and install 3 times with full shut downs between each attempt. I am running Windows 7 service pack 1 with an HP Laptop. It is an HP Pavilion dv6 Notebook PC. Product Number LY080UA. I hope that is enough information, but I will give more if asked and informed how to gather such info.
    When I right click on the Desktop Manager Icon, I choose to run as Admin. Once it loads the splash screen shows. After a little bit (4-6 seconds) a small Icon appears in my systems tab at the bottom right of my screen. This stays for a little while and then goes away. After this happens the Splash screen hangs, and get a black border around it. If I click on the Splash screen it grey out and says not responding, prompting windows to ask me if I want to wait for the program or close. If I choose to wait, it will sit there and do nothing. If I close it will prompt windows to "look for an error" but has not yet been able to return an answer.
    When I log into safe mode, Desktop Manager loads, but does not work well as only a bare bones set of drivers are enabled. If I turn off all but the non-essential services off using services.msc it will load, but again the services needed for it to run and the services for windows to be fully functional are not on at all.
    I have attempted to turn off all but the Desktop manager in the start up, using msconfig, but that does not help either.
    I am at my wits end here, and would really like some help with this. It loads up (desktop manager) on my Desktop, but I am unable to log that mammoth box around with me while I travel.
    Thank you for your time and efforts, I will be very grateful for any and all help.

    I'm having the exact same problem here! I'm running Windows 7 Ultimate SP1 x64. Please help! This was posted a month ago.

  • Can we have a "print button" to print massive report document ?

    Hi there,
    Can we have a "print button" to print a massive report document (e.g 3000 page , each for a specific customer description), instead of exporting to pdf or excell before printing.. ?
    Thanks
    -toni

    You cannot have a print Button in the report, But have you tried Scheduling the report, and setting the output to printer? That might meet your requirement. You can also use the schedule section to run it immediately (once)
    -Domnic

  • How do I find the URL for a document loaded into Buzzword?

    How do I find the URL for a document loaded into Buzzword?

    What kind of document? What is Buzzword?

  • BACKGROUND PROCESSING, REPORT NOT LOADING, "OBJECT NOT SET TO INSTANCE..."

    Post Author: thecoffeemachine
    CA Forum: .NET
    I already posted this message in other Web sites, but I am almost getting crazy here and I need help:
    HI:
    The Web application I am testing was having several issues related to loading Crystal Reports. It was fixed and I do not know which of the 1000 things I did to fix it; but now it began, again, to have the same behavior after I had a conflict with another Web site that was in the same server.
    The thing is that I had another virtual directory where resided a copy of the same Web app. for testing purposes/working with the Visual Studio. The reports were loading all fine, very fast, all perfect... And suddenly the assemblies of one Web site and the other began to "blend" together and..... well the same behaviors appeared again. I tried to copy the last stable backup and rebuild the Web app... but it did not work.
    At the very first time that one requests the report, it shows without problem. At the second time it shows an error message related to "cannot submit to background processing", and sometimes "object not set to an instance.." ... and on the third time it just never shows up and the app. becomes unresponsive. I have to close the window and request the Web site again in another browser window. If I wish to see the report again I have to wait for hours until it shows it.
    I am using Visual Studio 2003 and the Crystal Report version that was shipped with that Visual Studio version. I am working with Windows Server 2003 and SQL Server 2000. Below is the VB code:
        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load             Me.SqlConnection1.Open()
           Me.SqlSelectCommand1.Parameters("@CourseCode").Value = Request.QueryString("CD")         Me.SqlSelectCommandReferences.Parameters("@CourseCode").Value = Request.QueryString("CD")         Me.SqlSelectCommandTextbook.Parameters("@CourseCode").Value = Request.QueryString("CD")         Me.SqlSelectCommandObjectives.Parameters("@CourseCode").Value = Request.QueryString("CD")         Me.SqlSelectCommandTopicData.Parameters("@CourseCode").Value = Request.QueryString("CD") Me.SqlSelectCommandCourseOutcomes.Parameters("@CourseCode").Value = Request.QueryString("CD")
            Me.SqlDataAdapterMainData.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseSyllabusData")         Me.SqlDataAdapterReferences.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseReferenceData")         Me.SqlDataAdapterTextBook.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseTextbookData")         Me.SqlDataAdapterObjectives.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseObjectivesData")         Me.SqlDataAdapterTopicData.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseTopicData")
    Me.SqlDataAdapterCourseOutcomes.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseOutcomes")
            Dim myExportOptions As CrystalDecisions.Shared.ExportOptions         Dim myDiskFileOptions As CrystalDecisions.Shared.DiskFileDestinationOptions         Dim myExportFile As String         Dim myReport As New ABETFormat         myReport.SetDataSource(Me.DtsSyllabusCompleteData1)
            myExportFile = "C:UNTempPDF" & Session.SessionID.ToString & ".pdf"         myDiskFileOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions         myDiskFileOptions.DiskFileName = myExportFile         myExportOptions = myReport.ExportOptions
            With myExportOptions             .DestinationOptions = myDiskFileOptions             .ExportDestinationType = .ExportDestinationType.DiskFile             .ExportFormatType = .ExportFormatType.PortableDocFormat         End With
            myReport.Export()
            Response.ClearContent()         Response.ClearHeaders()         Response.ContentType = "application/pdf"
            Response.WriteFile(myExportFile)         Response.Flush()         Response.Close()         System.IO.File.Delete(myExportFile)         Me.SqlConnection1.Close()
        End Sub
    I already have tried moving the Crystal Reports dll´s to the bin directory. ..... I have tried calling the Garbage Collector at page unload...I also have checked, inside the report, that the database is "up to date"... ... recycling the worker process of the IIS... etc...
    I see that, in debbuging mode inside the Visual Studio, when the page loads the debbuging window shows a message notifying that the symbols related to the Crystal Reports dll's could not be loaded.
    Should I need to modify the default properties of the database? I checked "database is case insensitive", "use indexes or server for speed".. I have tried checking and unchecking the box "performing grouping on server"
    Oh by the way, my report has about 4 subreports in it. Each report loaded shows 1 or 2 pages.
    ANY HELP WILL BE EXTREMELY APPRECIATED....
    MMS

    See  [Crystal Reports For Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23&overridelayout=true] article, page 107 and on for details on how to use Crystal reports in session.
    Ludek

  • How to add a field object to group header section in crystal report document?

    Hi All, I have got two questions mentioned below, please share your inputs. 1)I want to know whether it is possible to add a field object to header section in crystal report document programmatically? I am using crystal runtime for visual studio. I know that using RAS we can do it, but I want to do it using managed library of crystal runtime. Please suggest. 2) I am doing a POC where I am using RAS (unmanaged library) to manipulated crystal report document. Please see code below: var dbTable = _reportDocument.ReportClientDocument.DatabaseController.Database.Tables[0]; var dbField = dbTable.DataFields.FindField(item.ColumnName,                         CrystalDecisions.ReportAppServer.DataDefModel.CrFieldDisplayNameTypeEnum.crFieldDisplayNameName,                         CrystalDecisions.ReportAppServer.DataDefModel.CeLocale.ceLocaleEnglishUS); CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject fieldObject = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject();                     fieldObject.DataSourceName = dbField.Name;                     fieldObject.FieldValueType = dbField.Type; var groupHeaderArea = _reportDocument.ReportClientDocument.ReportDefController.ReportDefinition.GroupHeaderArea[0].Sections[i]; _reportDocument.ReportClientDocument.ReportDefController.ReportObjectController.Add(fieldObject, groupHeaderArea); In above code last line throwing exception : "The report field type is not valid." at CrystalDecisions.ReportAppServer.Controllers.ReportObjectControllerClass.Add(ISCRReportObject ReportObject, Section Section, Int32 nIndex) Thanks, Jai

    Hi Jaikumar
    As per the SCN Rules of engagement, one question per thread please.
    Re. your 1st question. Adding a field to a report is considered to be a report creation APIs (RCAPI). Only the RAS SDK has RCAPIs, so you can not use plain jane crystal APIs. For how to with RAS, see the examples here: NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    Also, consult the Developer Help Files:
    Report Application Server .NET SDK Developer Guide
    Report Application Server .NET API Guide
    Re. your second question, please create a new discussion.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

Maybe you are looking for

  • Performance Tuning -To find the execution time for Select Statement

    Hi, There is a program that takes 10 hrs to execute. I need tune its performance. The program is basically reading few tables like KNA1,ANLA,ANLU,ADRC etc and updates to Custom table. I did my analysis and found few performance techniques for ABAP co

  • One vendor master with different recon posting while accounting of the bill

    I have one vendor master, where we can able to give only one recon. account.  But the vendor supplies various materials like rm, pm and capital material.  I want to change the recon account while accounting the invoice.

  • BPC 7NW Installation  ***Masters in BPC***

    Hi, Im trying to install BPC 7NW. I´m using this document u201CInstallation Guide SAP Business Planning and Consolidation 7.0u201D But in page 11 ask me for a downloading in this path: https://websmp204.sap-ag.de/swdc/ SAP Installation & upgrades > E

  • MDR-NC31E Not working on Z3 (appears as a microphone)

    Hi, I have a pair of noise canceling headphones, and the hot exam appear as a microphone, not the headset and it is not the headphones as my friend also has a Z3 (D6603, KK4.4.4) And they appear as intended and work as intended on his device. If anyo

  • Data dvd not recognized

    Hi Wonder if anyone can help... I have recently had a show-reel put together and they have sent me a copy on a data dvd with AVI and MOV files on it. This is so I can burn it and upload it to websites etc. When I load the disk it doesn't seem to be r