Problem of Deployment of crystal report on a x64-development client
Hi,
We have a issue with running crystal report on our development server (with OS = 64-bit Window Server 2003).
After crystal report files (.rpt) is saved on the BOE server (32-bit), when it is opened through InfoViewApp or OpenDocument, the connection to MySQL failed, the error message "Failed to open the connection"
Both 32-bits and 64-bits MySQL ODBC connectors are installed on the machine and both system and user DSN has been added on the system. After setting the database configuration in the CmcApp, there is no connection problem when opening the rpt file directly with another crystal report development platform, data can be correctly drawn when previewing the report.
Can you help to trouble shoot the issue ?
Any help is highly appreciated.
Hi Thomas,
I'm not sure it's related but we've run into other ODBC issues due to the 2 seperate REG keys where ODBC is managed in 64 bit windows.
"Copy your Business Objects ODBC-related registry keys to the Win64 branch of the registry. Open regedit.exe and copy the CMS and Audit DSN keys (manually, by re-creating them -- takes 5-10 minutes) from HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\ to HKEY_LOCAL_MACHINE\Software\Wow6432Node\ODBC\ODBC.INI\ "
If you aren't familiar with editing your windows registry or backing it up please open a message with support as any mistaked could potentially cause worse problems with your OS.
Hope this helps...
Regards,
Tim
Similar Messages
-
Problem of deployment of crystal report on development client
Hi,
We have a issue with running crystal report on our development server.
After crystal report files (.rpt) is saved on the BOE server, when it
is opened through InfoViewApp or OpenDocument, the connection to MySQL failed, the error message "Failed to open the connection"
Both 32-bits and 64-bits MySQL ODBC connectors are installed on the machine and both system and user DSN has been added on the system. After setting the database configuration in the CmcApp, there is no connection problem when opening the rpt file directly with another crystal report development platform, data can be correctly drawn when previewing the report.
Can you help to trouble shoot the issue ?
Any help is highly appreciated.Hi Thomas
If you are facing issue with your report only from the enterprise, I would suggest you to post you question in the Expert Forums » Business Objects » BusinessObjects Enterprise Administration.
Regards
Sourashree -
Problem while importing a Crystal Report in SAP Business One
Hi Experts,
I am facing a problem while importing a Crystal Report in SAP Business One, it displaying an error "No matching records found 'Queries' (OUQR) (ODBC -2028) [Message 131-183]" , and there is no use of this table OUQR in the Query.
Kindly let me know the solution.
Regards
Rahul SinghHi Rhaul,
i don't exactly know why this is a problem, but if your not on latest (881 p10) then upgrade and try again.
Or as a workaround,
try saveing from CR to SAP with the CR add-on. That usualy works better then the import.
Regards,
D -
DEPLOYMENT OF CRYSTAL REPORT IN SAP B1
Dear sir
I want to deploy my crystal report in to sap b1
ant want that onle permited user can see that
please help me
Regards
Anand Kmar PandeyHi Anand.....
You can import Crystal Reports and you can give Authorization for Crystal Reports like normal Authorization as SAP has that Provision.
Please check this video regarding Crystal reports.....
http://www.youtube.com/watch?v=bKLtTDNpQMM
Regards,
Rahul -
Problem to run the Crystal report inside from SAP B1 based on SQL views.
Hello,
I have a problem to run my Crystal report inside from SAP B1 which is based on SQL views.And the SQL views are stored in a separate database in SQL server.The error which i am getting is saying the the tablename does not exist.What i need to do in order to sort this problem.
Great if somebody can help me to sort out this so that i can run my report based on SQL views stored on separate database other than SAP databases inside from SAP B1.
Edited by: rozenagrawal on Apr 19, 2011 11:51 AMTry using a SQL synonym in your company database for the views outside the company database. I don't know if SBO will let you get away with it, but its worth a shot.
If your company database is MyCompany and you have a view called MyView in Views database, assuming the view belongs to schema dbo, and you want the synonym to belong to dbo schema in your company database, run this:
Use MyCompany
go
create synonym dbo.OutsiderView for
Views.dbo.MyView
go
select * from OutsiderView
The select statement should return the contents of MyView in the Views database while you are connected to your MyCompany database.
For more info, see the Books Online for MSSQL on topic synonym.
You will need to change your CR options to include displaying synonyms along with tables, views, etc. You may also need to grant select to B1 users.
Edited by: Cindy Lange on Apr 21, 2011 4:00 PM -
I am getting this error when iam deploying a crystal report website. I need help pliz.
Server Error in '/ftreports' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 22: <xhtmlConformance mode="Legacy"/>
Line 23: <httpHandlers>
Line 24: <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
Line 25: </httpHandlers>
Line 26: </system.web>
Source File: C:\ftReports\web.config Line: 24
Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832<p>There's not enough info to help troubleshoot the issue as there could be many reasons for the error to occur. One thing that does come to mind is that you may be missing a runtime file. Make sure you used the Crystal Reprots merge modules (msm) or the windows installer (.msi) to install the CR runtime on the web server. There's a lot of info on the BOBJ support site and the <a href="http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm" target="_blank">DevLibrary</a> on how to deploy CR applications.</p><p>It might be worth calling the BOBJ support team to help troubleshoot in case there is some specific configuration in your deployment that could be causing the error.</p><p>-MJ</p>
-
How do I deploy my Crystal Reports webapp???
Post Author: figue
CA Forum: .NET
Hi, i've developed a web application using Visual Studio .Net and using the Crystal Reports for Visual Studio 2005. I've read almost all the "how-tos" that are available on the net to solve my situation, but i couldn't manage to deploy my application.
I have no physical access to the web server, and i cannot execute a .exe or a .msi installer (i cannot use the "merge modules" solution).The only solution i think may help me is copying the Crystal Reports dll's to my BIN folder and using those dll's instead of using the GAC references.Here's what i've done:- I copied all the dll's that I found on Program Files/Common Files/Business Objects/2.7/Managed into my app's BIN folder.- I deleted all the references to the Crystal Reports' assemblies from my solution's property pages. FIRST PROBLEM: The references were deleted, but when I closed the solution, and opened it again, all the references returned.. After trying again and again, they finally dissapeared.- I tryied to add the references to the dll's that were into my app's BIN folder, but when I browse the file, select it, and accept the dialog box, nothing happens. No reference is added into the References window.- I tryied to add the GAC references again, to return to the previous state, but it's the same, i select the reference from the GAC and when i accept the dialog box, nothing happens.- I thought that maybe my pc has some troubles with the installed versions of crystal reports (i hace 8.5, XI and CR for VS 2005 installed), so i created a Virtual Machine, Installed VS 2005 and created a new web application with one .aspx and one .rpt and tryied to change the GAC's references for the BIN's DLLs. The same thing happend.
Can somebody please help me? I'm gettin' really tired of trying and trying things and not gettin' in solved.
Regards from ArgentinaPost Author: Ted Ueda
CA Forum: .NET
Unfortunately, xcopy deployments of Crystal Reports .NET assemblies won't work, since they rely on some dll's via COM-Interop.
Those components have to be registered on the server - via merge modules install - and regretably, you're restricted from doing so.
Sincerely,
Ted Ueda -
Vb6 deployment and Crystal Report 8.5
Hi,
I tried to deploy a Visual Basic 6 on a client pc that use Crystal Report 8.5.
Because no merge files exist for this version of Crystal Report I tried to added all the necessary dll in the deploy package (using visual basic 6 tools deployment).
I read the file Runtime.hlp so I added every dll wriiten in this file.
When I run my setup I always have this error :
The program can't start because CRPE32.dll is missing from your computer.
It's strange because I added this dll to my deployment package.
So I don't no what to do anymore.
Need some help to solve this problem because I know it's easier with more recent version of Crystal Report because of the merge file but right now this software need CR 8.5.
Regards,
HugoHi,
Ok here what I'm trying to do.
I have an application Visual Basic 6 that use crystal report 8.5 to export the report in pdf using the dll cradxt.dll by programming.
On the dev pc I have Visual Studio 6.0 and Crystal Report 8.5 installed.
I want to install this software on another PC so I created a deployment package, automatically the pakage added the "necessary" dlls.
But is not enough I need to added more on the client pc so it's hard even if I read the Runtime.hlp that come with Crystal Report 8.5 and I added all the dll it always seems to miss somes.
So I was wondering if a merge module or something exist like the other version of Crystal Reports to install the necessary dlls on a clients pc.
Otherwise what is the best way to do it ?
Regards. -
Problem viewing graph in Crystal reports using VB6
I have a report created in Crystal RDC Version 9 and it has a pie chart. The chart comes out fine in
Crystal but when I view it using Report-viewer OCX embedded in a VB6 application there are blank spaces
where the graph ought to be. Database used is SQL Server.
Does anyone know how to get past this problem?
Are there any specific dll files I need to download to be able to view the graphs ?Post moved to the Legacy SDKs - SAP Crystal Reports forum.
First a sort of a 'preamble" / FYI, then an attempt at some help
CR 9, being out of support for close to 10 years, it will be tough to get any help on this. My best suggestion would be to upgrade to CR 2008 and .NET (2005 or 2008) and use the CR SDK for .NET. Or use VS 2010 with Crystal Reports for Visual Studio 2010. E.g.; unfortunately, time to move to more recent builds of CR and development language.
BTW., the SDK you are using in CR 9 has been retired in CR XI R2 (11.5) which has been out of support since June 2009. E.g.; if this turns out to be a bug of some sort, no fixes...
The help (finally)
You say the following which is a bit confusing:
Crystal RDC Version 9 and it has a pie chart. The chart comes out fine in
Crystal but when I view it using Report-viewer OCX embedded
Not sure what you mean by "Report-viewer OCX embedded". The RDC SDK consists of essentially two files; craxdrt.dll and crviewer.dll. Craxdrt.dll is the engine, crviewer.dll is the viewer. Those should really be the only two CR references in your project. Assuming that this is the case, is the behavior you are describing on your development computer, or after you deploy the CR runtime? How did you deploy the CR runtime? Does the app work as expected anywhere?
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
Performance problem with Filters of Crystal Report
Hi,
I have been facing this problem for a month now.
Whenever I try to run a Crystal Report from Infoview it takes 5min or more to get the prompts screen
but sometimes(mostly when i restart all servers) the filter screen appears real quick say 5 to 10 secs(is this quick?)
I have no idea why this is happening! Is there an issue with the servers? or is this problem related to Crystal report?
Please help. I tried googling for this problem but could not find anything that would help.
Thanks
NileshI am using a universe which uses a DSN to connect to the sql2k5 database. One thing I forgot to mention is that this is a clustered environment(with 2 servers) and the input/output file repository is set to a folder on a third server.
Note: Even though the report filters take time to pop up, but the report runs very fast; doesnt take more than 5 seconds for a fairly complex report.
Yesterday I did a trial install on a seperate server and the reports filters come up pretty fast. -
Problem in Preview of Crystal Report
Hello Experts !!!!!
I have created a User Defined Form through SDK. I have created a Crystal Report also for that Form. Now on the click of Preview Menu of SBO I want to open my Crystal report. For this I have called the following function in Menu Event.....
Private Function LoadCrViewer(ByVal crxReport As CRAXDDRT.Report) As Boolean
Dim SBOFormCreationParams As SAPbouiCOM.FormCreationParams
Dim SBOCRViewer As SAPbouiCOM.ActiveX
Dim SBOForm As SAPbouiCOM.Form
Dim SBOItem As SAPbouiCOM.Item
Dim strFormCount As String
SBOFormCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
SBOFormCreationParams.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Sizable
SBOFormCreationParams.FormType = "XX_INCRPT01"
strFormCount = SBO_Application.Forms.Count.ToString
SBOFormCreationParams.UniqueID = "XX_INCRPT01" & strFormCount.PadLeft(3, "0")
'Add new form
SBOForm = SBO_Application.Forms.AddEx(SBOFormCreationParams)
SBOForm.Left = 0
SBOForm.Top = 0
SBOForm.Width = SBO_Application.Desktop.Width
SBOForm.Height = SBO_Application.Desktop.Height
SBOForm.Title = "inCentea - Mapas"
'Add CRViewer item
SBOItem = SBOForm.Items.Add("XX_CR01", SAPbouiCOM.BoFormItemTypes.it_ACTIVE_X)
SBOItem.Left = 0
SBOItem.Top = 0
SBOItem.Width = SBOForm.ClientWidth
SBOItem.Height = SBOForm.ClientHeight
' Create the new activeX control
SBOCRViewer = SBOItem.Specific
SBOCRViewer.ClassID = "CrystalReports13.ActiveXReportViewer.1"
Dim SBOCRViewerOBJ
SBOCRViewerOBJ = SBOCRViewer.Object
SBOCRViewerOBJ.EnablePrintButton = False
Dim MyProcs() As Process
Dim i, ID As Integer
Dim a As System.IntPtr
'Try Send the handle of SAP window
SBO_Application.Desktop.Title = "SBO under " + SBO_Application.Company.UserName
MyProcs = Process.GetProcessesByName("SAP Business One")
For i = 0 To MyProcs.Length - 1
If MyProcs(i).MainWindowTitle = SBO_Application.Desktop.Title Then
ID = MyProcs(i).Id()
a = MyProcs(i).MainWindowHandle
crxReport.SetDialogParentWindow(a.ToInt32)
'crxReport.PrinterSetup(a.ToInt32)
'crxReport.PrintOut(False)
End If
Next
SBOCRViewerOBJ.ViewReport()
SBOForm.Visible = True
Return True
End Function
But this Code is throwing an exception "No report to view." on the statement "SBOCRViewerOBJ.ViewReport()"
Please let me know where is the problem? And if possible then please rectify the Code.hello,
I have same issue as yours,
If you have found the solution for the same, please post the solution here, so that we can refer to it.
Thanks in advance for your help. -
Problem passing parameter to crystal report subreport from *.aspx page
Background:
I am developing a .NET web application using Visual Studio 2005. The code behind is in VB.net. One of my asp.net pages calls a report, which is invoked when the user clicks a Print button. I have developed this report using the Crystal Reports software that is bundled with Visual Studio 2005. I am passing one parameter from the asp.net page (utilizing the VB.net code-behind on the Print button) to the Crystal report. The report consists of a main report and 5 subreports. Both the main report and the subreports use the same parameter. Both the main report and the subreports are bound to stored procedures, each of which require a parameter.
Problem:
For some reason, the parameter is not being passed from the asp.net page to the report. I am receiving the following error: "CrystalDecisions.CrystalReports.Engine.ParameterField.CurrentValueException: Missing Parameter Values." However, when I remove the subreports, the parameter gets passed, and the report is invoked with no problem.
I have read in other forums that there may be an issue with the Crystal Reports software that is causing this problem. I have downloaded and run the suggested hotfix, but the problem remains unresolved. I have tried changing the linking of my main report to the subreport, but that doesn't help either. It is possible that I am doing something wrong with the linking, as this is the first time I have developed a report with Crystal Reports. I need a workaround or definitive solution. Below is the aspx code used to call the report:
Imports System
Imports System.Collections.Specialized
Imports System.Collections.ObjectModel
Imports System.Collections
Imports System.Text
Imports System.Configuration
Imports System.Data.SqlClient
Imports System.Data
Imports System.Data.SqlClient.SqlDataAdapter
Imports System.Web.Configuration
Imports Crystaldecisions.crystalreports.engine
Imports Crystaldecisions.reportsource
Imports Crystaldecisions.shared
Partial Class OACIS_Award_or_Deny_BudgetSummary_PrintRpt
Inherits System.Web.UI.Page
Dim paramFields As ParameterFieldDefinitions
Dim paramField As ParameterFieldDefinition
Dim paramValue As ParameterValues
Dim paramDiscreteValue As New ParameterDiscreteValue
Public Shared idCase, nameRpt As String
Private PrintRpt As ReportDocument
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
idCase = Request.QueryString("id")
nameRpt = Request.QueryString("prtName")
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
Dim file As String = settings.File
Dim dSource, iCatalog, userIs, passUser, appString As String
dSource = Nothing
iCatalog = Nothing
userIs = Nothing
passUser = Nothing
appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
Dim AppArray() As String = Split(appString, ";")
Dim arrayLgth As Integer = AppArray.Length
Dim i As Integer
For i = 0 To arrayLgth - 1
Dim pairIs() As String = Split(AppArray(i), "=")
Dim firstItem As String = pairIs(0)
Dim secondItem As String = pairIs(1)
If firstItem = "Data Source" Then : dSource = secondItem : End If
If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
If firstItem = "UID" Then : userIs = secondItem : End If
If firstItem = "PWD" Then : passUser = secondItem : End If
Next
Dim crReportDocument As ReportDocument
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim crconnectioninfo As ConnectionInfo
Dim crDatabase As Database
Dim crtables As Tables
Dim crtable As Table
Dim crtablelogoninfo As TableLogOnInfo
Dim Fname As String
Dim Prtname As String
Dim FPath As String
Dim crSection As Section
Dim crReportObject As ReportObject
Dim crSubreportObject As SubreportObject
Dim subRepDoc As New ReportDocument
FPath = Server.MapPath("") + "\"
Dim rptIs As String = nameRpt
crReportDocument = New ReportDocument
Prtname = FPath
Prtname = Prtname + rptIs
crReportDocument.Load(Prtname)
Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
crconnectioninfo = New ConnectionInfo
crconnectioninfo.ServerName = dSource
crconnectioninfo.DatabaseName = iCatalog
crconnectioninfo.UserID = userIs
crconnectioninfo.Password = passUser
crDatabase = crReportDocument.Database
crtables = crDatabase.Tables
For Each crtable In crtables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
Response.Write(ex)
Exit Sub
End Try
Next crtable
For Each crSection In crReportDocument.ReportDefinition.Sections
For Each crReportObject In crSection.ReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
crSubreportObject = CType(crReportObject, SubreportObject)
subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
For Each crtable In subRepDoc.Database.Tables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
End Try
Next
End If
Next
Next
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = Fname
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
Dim parIDCase As ParameterValues = New ParameterValues
Dim disIDCase As ParameterDiscreteValue = New ParameterDiscreteValue
disIDCase.Value = idCase
parIDCase.Add(disIDCase)
crReportDocument.DataDefinition.ParameterFields("@ID_CASE_NMBR").ApplyCurrentValues(parIDCase)
crReportDocument.Export()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
System.IO.File.Delete(Fname)
Catch ex As Exception
lblMessage.Visible = True
lblMessage.Text = "Error Load
" & Convert.ToString(ex)
End Try
End Sub
End Class
Your help is greatly appreciated!Thanks for your help!
I've now gotten past the "missing parameter values" error, and the report renders fine in the report viewer. However, I've encounted another problem. The data in my main report displays correctly, but the data in my subreport does not display. Of course, when I view the report in the designer, both the main report and subreport display correctly. What am I doing wrong? Below is my vb.net code:
Try
idCase = Request.QueryString("id")
nameRpt = Request.QueryString("prtName")
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
Dim file As String = settings.File
Dim dSource, iCatalog, userIs, passUser, appString As String
dSource = Nothing
iCatalog = Nothing
userIs = Nothing
passUser = Nothing
appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
Dim AppArray() As String = Split(appString, ";")
Dim arrayLgth As Integer = AppArray.Length
Dim i As Integer
For i = 0 To arrayLgth - 1
Dim pairIs() As String = Split(AppArray(i), "=")
Dim firstItem As String = pairIs(0)
Dim secondItem As String = pairIs(1)
If firstItem = "Data Source" Then : dSource = secondItem : End If
If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
If firstItem = "UID" Then : userIs = secondItem : End If
If firstItem = "PWD" Then : passUser = secondItem : End If
Next
Dim crReportDocument As ReportDocument
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim crconnectioninfo As ConnectionInfo
Dim crDatabase As Database
Dim crtables As Tables
Dim crtable As Table
Dim crtablelogoninfo As TableLogOnInfo
Dim Fname As String
Dim Prtname As String
Dim FPath As String
Dim crSection As Section
Dim crReportObject As ReportObject
Dim crSubreportObject As SubreportObject
Dim subRepDoc As New ReportDocument
FPath = Server.MapPath("") + "\"
Dim rptIs As String = nameRpt
crReportDocument = New ReportDocument
Prtname = FPath
Prtname = Prtname + rptIs
crReportDocument.Load(Prtname)
Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
crconnectioninfo = New ConnectionInfo
crconnectioninfo.ServerName = dSource
crconnectioninfo.DatabaseName = iCatalog
crconnectioninfo.UserID = userIs
crconnectioninfo.Password = passUser
crDatabase = crReportDocument.Database
crtables = crDatabase.Tables
For Each crtable In crtables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
Response.Write(ex)
Exit Sub
End Try
Next crtable
For Each crSection In crReportDocument.ReportDefinition.Sections
For Each crReportObject In crSection.ReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
crSubreportObject = CType(crReportObject, SubreportObject)
subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
For Each crtable In subRepDoc.Database.Tables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
End Try
Next
End If
Next
Next
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = Fname
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase)
crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase, "MemberName")
crReportDocument.Export()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
System.IO.File.Delete(Fname)
Catch ex As Exception
lblMessage.Visible = True
lblMessage.Text = "Error Load<br>" & Convert.ToString(ex)
End Try
Edited by: LaShandra Knox on Sep 17, 2008 7:59 PM -
Problem with Localization of Crystal Reports
Post Author: raj20007
CA Forum: Crystal Reports
Hi everyone..I am having a problem with crystal Reports. I need Malayalam unicode( INDIAN Language) to be displayed in the reports, this data will be binded from database.And the problem is : After applying this unicode font to the labels of my reports, some labels in the reports are going invisible.Also, previously if I increase the font size beyond 22, I used to get "A Generic error occured in GDI+". But after changing the textformat property of the field to "crRtfText" from "crstandardText" , I could resolve this Generic Error.
And, I could also observe that the last char of the fields in the "details" section is repeating.This is the code I am using to apply local font to the labels.
Private Sub assignfont()
Dim Mfont As New Font("kartika", 20, FontStyle.Regular,GraphicsUnit.Document)
CType(Report.Section8.ReportObjects("Field45"), CrystalDecisions.CrystalReports.Engine.FieldObject).ApplyFont(Mfont)
CType(Report.Section8.ReportObjects("Field48"), CrystalDecisions.CrystalReports.Engine.FieldObject).ApplyFont(Mfont)
End SubAnd I am calling this function in the form load event of that report.Any suggestion on this is greatly appreciated........Thanks in advance..Thanks for replying.
Yes I am trying to move the 15mb of template files which are located in the Users Profile to a different location. I have modified the key in the Registry which defines this location: HKEY_CURRENT_USER\Software
Business Objects\Suite 12.0\Crystal Reports\ChartSupportPath=My Defined Location
I have done this prior to installtion and prepulated the registry and the templates in my defined location, but the installation over looks this and writes over the reg key. Even after modifying the reg key post installation, the application writes over this key and ignores what's in there. Does this mean that the Install.EXE is hard coded to always over write that location, and therefore the crw32.exe is hard coded to look in the User's Profile for the templates, and if they are not there it will create a copy for the User specific??
Thanks -
Problem in Display the Crystal report using Crystal report Viewer 2008
Hi All,
I have developed crystal web project with crystal report using Eclipse IDE. when I deploy this web application using Tomcat server 6.0 in Windows xp, Windows Vista.. It is working fine..
But When I deploy it into Windows 2000 server , I am not able to see Last 2 columns of the report page in the Viewer.
But When I tried to Export as Excel, I got all the datas in the Report and also when I preview the report in Eclispe IDE using crystal viewer plugin it is working fine in Windows 2000 server also..
Thanks in Advance for your help..
Regards,
SathiyaMBPSWindows 2000 is not supported in current versions of CR. Check the platforms PDF file.
-
Problem in Installation of Crystal Reports 2011 trial version
Hello Friends,
I have been trying to Install Crystal Reprots 2011 trial version in my Desktop whose Operating System( windows 7 ) language is English .
I choose English as a language pack during Crystal Reports installation , at the end of the installation I found the software was installed in Danish as I stay in Denmark......
I tried several times to install it in English but the same problem comes up..............
any help willl be appriciated......................Hi,
I presume that this version has exactly the same problem that previous version where the language setting was ignored and the regional settings always prevailed:
https://service.sap.com/sap/support/notes/1197784
Regards,
Julian
Maybe you are looking for
-
When I try to purchase songs in the ITune Store a message pops up and says my session is timed out and to make sure my network settings are correct.
-
Meet Polar Bears On Line (Video + Stills)
My film "Polar Bear Pueblo" can be seen on the web if you have a high speed internet connection. The video starts in New Mexico with the Carlsbad Caverns, Taos Pueblo, White Sands, Roswell, Santa Fe, and much more. Moving north, it then features the
-
We receive the error CMS is unstable and will shut down immediately. Reason: Database access error. Reason ORA-00904: "CMS_INCREMENTWITHROLLOVER5": invalid identifier. when we try and start our CMS. We are running the CMS on Oracle as you can tell fr
-
Safari (3.1.2) opens PDFs at 190% zoom. is there a control to make it open them at 100% ?
-
Speed adjustment/audio?
This should be another easy one. Whenever I select a clip to edit and change the speed from anything other than 100% (normal) the speed changes but the audio goes away. I want to speed up or slow motion the clip but I want to keep the audio as well.