Data Connectivity
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Data Connectivity
Message Icon Topic: ex = {"Unknown error 0x80040200"} Post Reply Post New Topic
Author Message
Arpit.Rohatgi
Newbie
Newbie


Joined: 28 Sep 2010
Location: India
Online Status: Offline
Posts: 2
Quote Arpit.Rohatgi Replybullet Topic: ex = {"Unknown error 0x80040200"}
    Posted: 28 Sep 2010 at 5:35am

pls help me out iam getting exception

ex = {"Unknown error 0x80040200"}
 while loading repot
on following line

objReportDoc.Load(myInfoObject, myEnterpriseSession)

my complete code is

#Region " Imports "

Imports CrystalDecisions.CrystalReports.Engine

Imports Crystaldecisions.reportsource

Imports Crystaldecisions.shared

Imports System.Configuration.ConfigurationSettings

Imports CrystalDecisions.Enterprise

Imports CrystalDecisions.Web

Imports EDF.Utility

Imports EDF.ExLog

 

#End Region

Public Class Web_DWH_LC_ReportsOutput

Inherits System.Web.UI.Page

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Try

Dim objReportDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument

'Code added for Crystal Report Server Enterprise

Dim mySessionMgr As New SessionMgr

Dim myEnterpriseSession As EnterpriseSession

Dim myEnterpriseService As EnterpriseService

Dim queryString As String

Dim strparam As String

Dim strparams() As String = Nothing

Dim frmDate As String = ""

Dim toDate As String = ""

myEnterpriseSession = mySessionMgr.Logon("Admin", "", "hddlgsdmnk9200", "secEnterprise")

myEnterpriseService = myEnterpriseSession.GetService("InfoStore")

Dim myInfoStore As New InfoStore(myEnterpriseService)

 

queryString = "SELECT * FROM CI_INFOOBJECTS WHERE SI_KIND = 'Folder' AND SI_NAME = 'IOWA_DWHDEV' "

Dim myInfoObjects1 As InfoObjects = myInfoStore.Query(queryString)

Dim myInfoObject1 As InfoObject = myInfoObjects1(1)

Dim id As Integer = myInfoObject1.ID

queryString = "Select SI_KIND,SI_CUID,SI_RUID,SI_PARENT_CUID,SI_GUID,SI_DESCRIPTION From CI_INFOOBJECTS Where SI_PROGID='CrystalEnterprise.Report' And SI_NAME = 'APPEAL_REPORT.rpt' and SI_PARENT_FOLDER = " + id.ToString()

Dim myInfoObjects As InfoObjects = myInfoStore.Query(queryString)

Dim myInfoObject As InfoObject = myInfoObjects(1)

objReportDoc.Load(myInfoObject, myEnterpriseSession)

strparam = Request.QueryString("rptParam")

strparams = strparam.Split(";".ToCharArray)

frmDate = strparams(0)

toDate = strparams(1)

Catch ex As Exception

Logger.Log(ex.StackTrace)

Finally

End Try

End Sub

Private Sub CrvLICReportViewer_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles CrvLICReportViewer.Unload

Private Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Unload

CrvLICReportViewer.Dispose()

GC.WaitForPendingFinalizers()

GC.Collect()

End Sub

End Class



Edited by Arpit.Rohatgi - 28 Sep 2010 at 6:08pm
IP IP Logged
Arpit.Rohatgi
Newbie
Newbie


Joined: 28 Sep 2010
Location: India
Online Status: Offline
Posts: 2
Quote Arpit.Rohatgi Replybullet Posted: 28 Sep 2010 at 5:54pm

Hi all iam stuck in this stupid error for past 4 days ......

guys pls help me out

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.032 seconds.