Activex crystal 10
Hi everyone, I have a problem with an app builded in vb6 and crystal 10, when I installed the program in a client I get the following error: "Error 429 in run time, then control activex can not created the object".. the pc client has de library crviewer.dll v10...
Thanks
How do you deploy the CR runtime?
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]
Similar Messages
-
Help with ACTIVEX Crystal Reports
I have been using Crystal in my app since 2001; We had stabilized over the years with RAS 9.0 and the ActiveX viewer.
Now I am migrating to Business Objects XI R2. and I cant use the ActiveX viewer (because i am using RAS to change the report source...)
So i am stuck with the rest of the world with the .NET free viewer.
OK- it stinks but OK.
everything is cool until time to print.
My users are HATING the PDF printing that is standard .
So we turned on ACTIVEX printing.
My users are having a devil of a time downloading the proper controls.
Now- if i put the site in my trusted sites- all is good- but this is crazy.
The ActiveX control can load to the clients machine.
It affects all OS/ all levels of access (Admins too)
It is a browser issue ;
I have about 20% of my (20,000 daily) users who are being affected by this .. So we quickly go back to PDF (for now)
Anyone else having trouble with ActiveX Crystal XI download for PRINTING only?
I know that we used to distribute npviewer.exe under my old RAS 9 days to Admins who had network consideration. I'd hate to have to contact 20,000 people and say "hey ; remember all that trouble we had getting Crystal Reports to run on your machine....well....we kinda upgraded....and...well....we are gonna have to do it again.....sorry"
HELP!!
I am looking for:
1) best practices
2) what is min requirements for the activex printing.
3) a possible download (like npviewer.exe)See if [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] or [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note help to resolve the issue.
If not, utilities such as [Fiddler|http://www.fiddlertool.com/fiddler/] or [Charles|http://www.charlesproxy.com/download.php] may be of help in tracing what is going on with the access to the activeX.
Ludek -
PrintMode="ActiveX" & Crystal Reports 2008
Using CR XI.5, we were having our users print crystal reports in our .NET web application using a CrystalReportViewer and setting the PrintMode="ActiveX".
To do this, we had to add this to our Web.Config:
<configSections><sectionGroup name="businessObjects"><sectionGroup name="crystalReports"><section name="reportMappings" type="CrystalDecisions.Shared.ReportMappingHandler, CrystalDecisions.Shared, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, Custom=null"/></sectionGroup></sectionGroup></configSections>
<businessObjects><crystalReports><reportMappings><add reportName="ClassLabels.rpt" path="Reports\ClassLabels.rpt"/><add reportName="ClassStarted.rpt" path="Reports\ClassStarted.rpt"/><add reportName="ClassStatus.rpt" path="Reports\ClassStatus.rpt"/><add reportName="inactivestudents.rpt" path="Reports\inactivestudents.rpt"/><add reportName="NewClassLabels.rpt" path="Reports\NewClassLabels.rpt"/></reportMappings></crystalReports></businessObjects>
Since we upgraded to Crystal Reports 2008 last night, we are getting errors in our app. I tried upgrading the control Version number in the Web.Config, but I am getting an error saying it can't find CrystalDecisions.Shared.ReportMappingHandler.
An error occurred creating the configuration section handler for businessObjects/crystalReports/reportMappings: Could not load file or assembly 'CrystalDecisions.Shared, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
After removing the above code out of the web.config, I am getting an error when trying to print from IE that says
IE Security Warning
Windows has blocked this software because it can't verify the publisher.
Name: PrintControl.cab
Publisher: Unknown Publisher
Any ideas? I just created a brand new app with a new crystal report and was able to recreate the error. Thanks in advance for your help.We are using Visual Studio 2008 actually.
Like I mentioned, I created a brand new app with a brand new CR 2008 report and got the error as well so I don't believe the issue to be in the actual reports.
I installed the CRRuntime_12_0_mlb.exe from a download last week of cr120_redist_install.zip.
When I add the code below to my Web.Config, the app builds properly and the dialog boxes load properly on my local system.
<configSections>
<sectionGroup name="businessObjects">
<sectionGroup name="crystalReports">
<section name="reportMappings" type="CrystalDecisions.Shared.ReportMappingHandler, CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</sectionGroup>
</sectionGroup>
</configSections>
<businessObjects>
<crystalReports>
<reportMappings>
<add reportName="myreport.rpt" path="myreport.rpt"/>
</reportMappings>
</crystalReports>
</businessObjects>
But when I upload that code to my Windows 2003 server, I get the IE Script Error mentioned above. -
ActiveX Crystal Report Control
Post Author: JLTerMarsch
CA Forum: General
I am using Crystal Reports 8.5 Developer. I know it is old, but I am using the original Crystal Reports Control ActiveX. Where can I get a list of the available commands available to me? e.g. printreport, exportto etc.
Thanks
JimPost Author: ejthunder
CA Forum: General
Hello,
You can try the information in this Kbase article:
http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2009096
I found it by searching on "developer help 8.5" in the kbase search field.
If you're developing in VB6 you can also go to the object browser in VB6 and filter on CRAXDRT. The object browser is usually on one of the toolbars in the VB6 IDE. Change the "<All Libraries> option in the upper left corner of the object browser to CRAXDRT and you'll see a filtered list. You can drill into the different objects from here to get a better understanding of the object.
I hope this helps.
EJ -
Post Author: [email protected]
CA Forum: Other
Hi, I have integrated in our soft, the Crystal report RDC,ActiveX viewer and ActiveX designer. On my computer all works fine. But on one of my test computer, the viewer and the Designer don't works fine. The activeX are not displayed (I have a blank windows).
I have installed Crystal reports XI release 2 developer on my test computers, but some computers work fine and other don't work. I have the same result with the deployment of the free RDC.
I have try to display the activeX viewer with TSTCON32.exe (activeX test container), the viewer is displayed correctly. After many tests on one of my computer test , the viewer and designer got to work but I have change nothing on the computer. On this computer the bug doesn't appear again. but on other I have still the issue.
It seems there is a bad installation or initialization of the activeX at the first call.
Any idea ?
Thanks in advance
FredHi Pat,
For English thread there is another forum as below for your question.
https://www.sdn.sap.com/irj/scn/forums
Just click "Business Objects SDK Application Development" and then click ".NET Development - Crystal Reports"
It should be more profesional for SDK questions.
Hope it helps.
Regards,
Sunny -
Crystal ActiveX Report Viewer Controlのインストールについて
皆さん、こんにちは。
クリスタルレポートXIR2をASP(ASP.NETではない方です)で
表示しているのですが、クライアント側のブラウザにおいて
ActiveXのCrystal ActiveX Report Viewer Control 11.5のインストールに失敗したり、
インストールできてもうまく動作しなかったりする事があるのですが、
うまくインストール出来なかった場合の対処法・再インストール方法などは、
ありますでしょうか?
ご教示下さい。宜しくお願いいたします。
利用形態:ASPを使ったブラウザ上への帳票表示
[サーバの環境]
windows 2003 server R2
Crystal ReportsXI R2 SP6
DB:oracle10g
開発言語:ASP
[クライアントの環境・ブラウザ]
WindowsXP SP3 +IE6
Windows7 32bit +IE81
Edited by: tamayyy on Nov 22, 2011 4:15 PM -
Crystal Report Print Control install error
Hi,
I'm trying to manually install the crystal report print control active x file. After righ-clicking to install the printcontrol.inf file, i got the following error message; "The INF you selected does not support this method of installation" Any idea why I could not install?
I am running Windows Vista and have local admin rights.
Thanks in advance.Umm, when I enter the following search terms in the search box at the top right corner of this web page:
print control activex crystal net
I get the following KB:
[1645006 - How to install the Crystal Reports ActiveX Print Control manually?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333633343335333033303336%7D.do].
See if that helps. Note that since you do not mention version of CR, the KB may not be specific to your version of CR, but it should point you in the right direction, no matter what the version.
- Ludek -
Connection error with Crystal Report XI, VB6 and Sybase ASE15
Hello !
I have an error #4002 when I want to launch a report in VB6 with the ActiveX Crystal Report Viewer.
I use Sybase ASE 15 with an ODBC link and the reports run stored procedures.
This error seems to be an authentification error, but I don't know what parameters are missing or wrong...
- My reports works well in the report designer.
- The reports connected to a text file or an ADO recordset work in VB6.
- The Verify Database works in design mode in VB6.
- The problem is the same with tables, stored procedures, SQL and with or without parameters...
- I tried to connect the report to a DataEnvironnment but I get the same error.
The problem appears when I use the Crystal Wizard to create a form automatically AND when I create objects directly in code like :
Dim crapp As CRAXDRT.Application
Dim oReport As CRAXDRT.Report
Set crapp = New CRAXDRT.Application
Set oReport = crapp.OpenReport("C:\myreport.rpt")
CRViewer.ReportSource = oReport
CRViewer.viewReport
Please help !Hello,
I don't see any database logon code in what you posted. You need to log onto the database at runtime since Crystal Reports will never store passwords.
You can download and review the [Connection Properties|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00635998-751e-2b10-9cba-f50ee1e4ef81] document for more information on how to log onto your database at runtime. This document was written for CR9, but it's the same for CR10, CR XI (v11.0), and CR XI R2 (v11.5).
I hope this helps.
Sincerely,
Dan Kelleher -
Slow performance of Crystal Viewer on app startup
Post Author: Soundwave
CA Forum: .NET
Using Crystal XI, something that has always bothered me about using embedded ActiveX Crystal Viewers in my .NET and VB6 apps is the painfully long load time for the first report that is run after the application loads.It seems to be delayed loading of the viewer or other Crystal code into memory, as each report after the first one performs fine, but yet the first thing every one of my users complains about is how long they have to wait for their first report to appear. Doesn't matter what the application is, or how complex or simple the report is, the loading time is always there.Is anyone aware of tricks or optimizations to either decrease this loading time, or to force the loading time into program startup code (where users are much more patient to wait)? I've done a few tests of things like loading empty reports in the background (not visible to user) when the app starts, but unless I put something on screen it never seems to give a performance improvement for the first proper report loaded.Post Author: LisaConsult
CA Forum: .NET
Well, here's a long snippet of code. This code is not within the form that contains the Crystalreportviewer (frmCurrView), rather in a class I created to manage all of the reports that the application handles which can be initiated from various sources. One problem I have is that I don't have a ReportDocument.close. I don't know where to put it. Once I pass the report to the viewer via Reportsource =crReport, the user may keep the viewer window up and I can't kill it then. Additionally, I often open multiple reports at one time (notice for loop), so I don't really have a way to track the crReport once I leave. Additionally, if I declare my crReport = New CrystalDecisions.CrystalReports.Engine.ReportDocument outside of the loop and reuse it, my performance is much better, but exporting, etc in the reportviewer then generates errors, I suspect it is because I've reused the crReport when it is attached to multiple viewers. Any critical response is welcome. Crystal is a huge problem in my app right now. This code does work in a production app for 2 years, but performance and I would guess releasing of resources is making it an ineffective piece of code. Thanks
Public Function CreateReport(ByVal blnModal As Boolean)
Dim crReport As CrystalDecisions.CrystalReports.Engine.ReportDocument Dim crRptLogonInfo As New CrystalDecisions.Shared.TableLogOnInfo Dim crRptConnection As New CrystalDecisions.Shared.ConnectionInfo Dim crRptTable As CrystalDecisions.CrystalReports.Engine.Table Dim crParameterFieldDefinitions As CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions Dim crParameterFieldDefinition As CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition Dim crParameterValues As New CrystalDecisions.Shared.ParameterValues Dim crParameterDiscreteValue As New CrystalDecisions.Shared.ParameterDiscreteValue Dim crMargins As New CrystalDecisions.Shared.PageMargins Dim rpt As clsRptDesc Dim objCurrRpt As New clsRptType Dim frmCurrView As frmReportView '******this has my report viewer in it Dim strPrinterName As String Dim blnFirstTime As Boolean Dim dlgPrint As PrintDialog Dim dlgResult As DialogResult Dim start As DateTime Dim strMsg As String
Try
blnFirstTime = True For Each rpt In Report crReport = New CrystalDecisions.CrystalReports.Engine.ReportDocument start = Now crReport.Load(rpt.FileName, CrystalDecisions.[Shared].OpenReportMethod.OpenReportByTempCopy) 'Performance Measuring WriteTimeToFile("Report Init & Load: ", Now.Subtract(start).TotalMilliseconds) start = Now crRptConnection.IntegratedSecurity = False crRptConnection.ServerName = g_strDATABASE_NAME crRptConnection.DatabaseName = "XXXXX" crRptConnection.UserID = g_strDATABASE_USER_ID crRptConnection.Password = g_strDATABASE_USER_PW
For Each crRptTable In crReport.Database.Tables crRptLogonInfo = crRptTable.LogOnInfo crRptLogonInfo.ConnectionInfo = crRptConnection
crRptTable.ApplyLogOnInfo(crRptLogonInfo) 'crRptTable.Location = crRptTable.Location.Substring(crRptTable.Location.LastIndexOf(".") + 1) Next
'Set discrete value 'Access first parameter field definition crParameterFieldDefinitions = crReport.DataDefinition.ParameterFields For Each crParameterFieldDefinition In crParameterFieldDefinitions Select Case crParameterFieldDefinition.Name 'other parameters in case statement Case "blnDraft" crParameterDiscreteValue.Value = clsSession.getInstance.DraftMode End Select ' Add parameter value crParameterValues = crParameterFieldDefinition.CurrentValues
crParameterValues.Add(crParameterDiscreteValue) ' Apply the current value to the parameter definition crParameterFieldDefinition.ApplyCurrentValues(crParameterValues) Next
'Performance measuring WriteTimeToFile("Report Setup Params: ", Now.Subtract(start).TotalMilliseconds) start = Now
'This special logic for printout is only needed here because we spool multiple reports. 'The Printout button logic happens in this routine in this case only Select Case Me.ViewType Case g_intPREVIEW_RPTS frmCurrView = New frmReportView(blnModal) frmCurrView.Text = rpt.ReportTitle frmCurrView.crReportViewer.ReportSource = crReport frmCurrView.crReportViewer.Show() frmCurrView.crReportViewer.Zoom(1) WriteTimeToFile("frmReportView Init: ", Now.Subtract(start).TotalMilliseconds)
If blnModal Then frmMDI.DefInstance.AddOwnedForm(frmCurrView) frmCurrView.ShowDialog() Else start = Now frmCurrView.Show() 'Performance Measuring WriteTimeToFile("frmReportView Show: ", Now.Subtract(start).TotalMilliseconds) End If frmCurrView = Nothing Case g_intPRINT_RPTS If blnFirstTime Then dlgPrint = frmMDI.DefInstance.DefInstance.pfdPrint dlgPrint.PrinterSettings = New System.Drawing.Printing.PrinterSettings 'other dlg options set here. dlgResult = dlgPrint.ShowDialog()
If dlgResult = DialogResult.OK Then strPrinterName = dlgPrint.PrinterSettings.PrinterName End If blnFirstTime = False End If crReport.PrintOptions.PrinterName = strPrinterName ' other report print options set here. If dlgResult = DialogResult.OK Then 'User did not click cancel button in PrinterSetup start = Now crReport.PrintToPrinter(1, False, 0, 0) WriteTimeToFile("PrinterPrint: ", Now.Subtract(start).TotalMilliseconds) End If End Select
'crReport.Close() this causes a problem if you want to export the report Next 'Have this here, but probably not really releasing like it should crReport = Nothing
Catch ex As Exception ExceptionManager.Publish(ex) Return False End Try Return True End Function -
Viewing Crystal 2008 ActiveX on Access 2007 forms
Ok, i am a little confused as there seems to be a some doubt whether Crystal 2008 ActiveX can be used on Access forms. Another thread even has a reply that mentions that the ActiveX control is no longer included in Crystal Reports 2008..... Take a look at this, you can clearly see i have embedded the 2008 ActiveX control onto an Access form. link:[http://www.moktar.pwp.blueyonder.co.uk/AX.JPG]
I have just installed 2008 and will get round to looking at this, however in my brief look, i couldnt see the run time library for 2008. By all accounts you can freely distribute the run time files for Crystal Reports 2008 as MSI or exe packages to your clients. I hope this is the case and i can get the ActiveX working.
If anyone has some information on this subject i will welcome reading it.
This is how its used to be done;
1) Open the Access form in design view.
2) Click on Add Tool button on the toolbar.
3) Select Crystal Reports ActiveX toolbar control from the list of controls.
4) Place the control on the form.
5) Click on the View Code toolbar button to open the code for the form
6) Choose u2018Referencesu2019 from the u2018Toolsu2019 menu
7) Select u2018Crystal Reports ActiveX Design and Runtime Library 11.Xu2019 from the list of references and add to the project.
8) On the Form_Load() event, please use the code given below to pass the report to the viewer:
Dim crReport as CRAXDRT.Report
Dim crApplication as New CRAXDRT.Application
u2018 Use the appropriate path for the report
Set crReport = crApplication.OpenReport(u201CC:\Report1.rptu201D)
u2018 ReportSource property and ViewReport method will not be displayed on the viewer control
CrystalActiveXReportViewer0.ReportSource = crReport
CrystalActiveXReportViewer0.ViewReport
'Hey Presto, the Crystal control on the Access form is now displaying a report. However, you had the age old issue of distributing the runtime files to clients that dont have crystal reports installed, and even more so of an issue, as this is Access and no method of doing it. I was hoping that 2008 with its MSI and EXE versions of the runtime files would solve this age old problem.
Thanks
Simon.Hello Simon,
The RDC was retired after Crystal Reports XI R2 and no longer exists in CR 2008.
The viewer control you are seeing is not meant for RDC applications.
You will need to move to Java or .NET if you plan on using CR 2008.
Best Regards,
Jason -
Crystal Report ActiveX viewer 11 not installing on windows 7 64 bit
Hi We have a web application which calls Crystal reports. If the Active doesnot exits on the user machine it tries to download it and intall. This works find on Windows XP, Windows 7 32 bit. But on Windows 7 64 bit the activex is not getting installed.
Any help will be appreciated.Crystal Reports 11 is not supported on WIN 7. Update to CR XI R2 (11.5) using the directions here:
Where did all the Crystal Reports XI R1 and R2 fixes go?
Then, see this blog:
http://scn.sap.com/community/crystal-reports-for-visual-studio/blog/2010/03/29/crystal-reports-xi-release-2-support-of-w…
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Crystal ActiveX Runtime Lib: Change text data source path at run time.
We have some PCs running Crystal Reports 10 and some running CR 9 and 8.5. For each PC, we set up a System DSN ODBC data source (in Control Panel - Administrative Tools) for pulling data from text files to
generate reports.
Recently we wrote some routines (see the Visual Basic example at the
end of this message) to change the path of the data files at runtime.
According to the Crystal Reports Technical Reference Guide, we may use
the method LogOnServer() of an Application object or an DatabaseTable
object. However, we find that this does not work: the PrintOut()
method only pulls data from the default path as configured for the
System DSN, not from the path passed as the third parameter of
LogOnServer(). It does not return any error message.
We have also tried to use SetTableLocation() method, and it still does
not work.
Would any experts examine our code below and advise what we are missing? Thanks.
For the following VB example, we have:
System DSN Name: AP_WORKSHEET
Driver: Microsoft Text Driver
Database Directory: D:\0ood2 (i.e. the default path)
Crystal Report Document: D:\3g\run\Vision\apcyto\Reports\crBlockWS.rpt
(Which specifies that the data source text file name is BlockWS.txt)
Purpose : We would like to read the data source text file from
D:\0ood1 instead of the default path.
Following is the code of the VB macro:
Sub test()
Rem In this version of the subroutine, we call
Rem DatabaseTable.LogOnServer() and "Rem"ed out
Rem Application.LogOnServer() and SetTableLocation().
Rem We have un"Rem"ed each of them and "Rem"ed others and try to run.
Rem In all runs, data are pulled from the default file
Rem D:\0ood2\BlockWS.txt instead of D:\0ood1\BlockWE.txt.
Dim crxapp As CRAXDRT.Application
Dim crxRep As CRAXDRT.Report
Dim crxDB As CRAXDRT.Database
Dim crxTab As CRAXDRT.DatabaseTable
Dim crxConnPs As CRAXDRT.ConnectionProperties
Dim crxConnP As CRAXDRT.ConnectionProperty
Dim apropSubLoc As String
Dim apropConnBufStr As String
Set crxapp = CreateObject("CrystalRuntime.Application")
Rem
crxapp.LogOnServer "p2sodbc.dll", "AP_WORKSHEET", "<CRWDC>DBQ=D:\0ood1",
Set crxRep = crxapp.OpenReport
("D:\3g\run\Vision\apcyto\Reports\crBlockWS.rpt")
Set crxDB = crxRep.Database
Set crxTab = crxRep.Database.Tables(1)
apropConnBufStr = crxTab.ConnectBufferString
apropSubLoc = crxTab.SubLocation
crxDB.LogOnServer "p2sodbc.dll", "AP_WORKSHEET", "<CRWDC>DBQ=D:\0ood1",
Rem crxTab.SetTableLocation "D:\0ood1\BlockWS.txt", apropSubLoc, "DSN="
Rem Set crxConnPs = crxTab.ConnectionProperties
Rem Set crxConnP = crxConnPs.Item("DSN")
Rem crxConnP.Value = "AP_WORKSHEET"
Rem Set crxConnP = crxConnPs.Item("Database")
Rem crxConnP.Value = "D:\0ood1\BlockWS.txt"
Rem crxTab.Location = "BlockWS.txt"
crxRep.DiscardSavedData
crxRep.PrinterSetup (0)
crxRep.PrintOut
End Sub
For VB macros, the problem exists in all of CR 8.5, 9 and 10. However,
for another platform we are using, Unify Vision 4GL, it works for CR
8.5 while not working for CR 9 and 10.
Following is the source code in Unify Vision 4GL. This language may
not be popular, but I thin you are about to see how it calls the
Runtime Library methods LogOnServer(), OpenReport(), PrinterSetup() and
PrintOut().
%gfPrintCrystalReport
BOOL FUNCTION gfPrintCrystalReport($reportName)
BEGIN
if NOTMKNOWN(GF:$oSeagateId) then
create service of activex
class 'CrystalRuntime.Application'
object_ref into GF:$oSeagateId;
if MKNOWN(GF:$oSeagateId) then
begin
/* TD23013: Database directories are dynamic to
accommodate multiple user requirement of Citrix */
send message LogOnServer to GF:$oSeagateId
using
( 'PDSODBC.DLL', 'AP_WORKSHEET', '<CRWDC>DBQ='+GF:$WinTempDir,'','')
identified by $msgHandle;
if $msgHandle:MSG_STATE 'RESPONSE_PROCESSED'
then
begin
display 'Crystal Reports cannot connect
to the datasource ' for fyi_message wait;
return (FALSE)
end
send message OpenReport to GF:$oSeagateId using
($reportName, 1)
identified by $msgHandle returning
$oCrystalReport
if MKNOWN($oCrystalReport) then
begin
if (NOTMKNOWN(GF:$printerName)) then
set GF:$printerName to
$oCrystalReport->PrinterName;
if GF:$printerName $oCrystalReport-
PrinterName then
send message SelectPrinter to
$oCrystalReport
using
(GF:$driverName,GF:$printerName,GF:$portName)
identified by $msgHandle;
set $oCrystalReport-
DisplayProgressDialog to FALSE;
while TRUE
begin
DISPLAY NOTICE 'Print to : ' +
GF:$printerName
LABELS 'Ok'
DEFAULT, 'Cancel', 'Printer Setup'
RESULT INTO $userOption
switch ($userOption)
begin
case 0 :
send
message PrintOut to $oCrystalReport
using
(PROMPT_USER, NUMBER_OF_COPIES, COLLATED, START_PAGE, STOP_PAGE)
identified by $msgHandle;
set
$oCrystalReport to UNDEFINED
return
(TRUE);
case 1:
set
$oCrystalReport to UNDEFINED
return
(FALSE);
case 2:
send
message PrinterSetup to $oCrystalReport
using
(0)
identified by $msgHandle;
if
GF:$printerName $oCrystalReport->PrinterName then
begin
set GF:$printerName to $oCrystalReport->PrinterName;
set GF:$driverName to $oCrystalReport->DriverName;
set GF:$portName to $oCrystalReport->PortName;
end
break;
end
end
end
end
return
(FALSE);
ENDHi Sydney,
If you search the Developers help file you'll find info on using the method:
How to change the data source
This example demonstrates how to change the data source from native Access to an OLEDB (ADO) data source by using the ConnectionProperty Object, as well as how to change the table name by using the Location property of the DatabaseTable Object. CrystalReport1 is connected to the xtreme.mdb database found in the \Program Files\Crystal Decisions\Crystal Reports 10\Samples\En\Databases folder. The report is using the Customer table. A copy of the Customer table is added to the pubs database on Microsoft SQL Server.
' Create a new instance of the report.
Dim Report As New CrystalReport1
Private Sub Form_Load()
' Declare a ConnectionProperties collection.
Dim CPProperties As CRAXDRT.ConnectionProperties
' Declare a DatabaseTable object.
Dim DBTable As CRAXDRT.DatabaseTable
' Get the first table in the report.
Set DBTable = Report.Database.Tables(1)
' Get the collection of connection properties.
Set CPProperties = DBTable.ConnectionProperties
' Change the database DLL used by the report from
' native Access (crdb_dao.dll) to ADO/OLEDB (crdb_ado.dll).
DBTable.DllName = "crdb_ado.dll"
' The connection property bags contain the name and value
' pairs for the native Access DLL (crdb_dao.dll). So we need
' to clear them, and then add the name and value pairs that
' are required to connect to the OLEDB data source.
' Clear all the ConnectioProperty objects from the collection.
CPProperties.DeleteAll
' Add the name value pair for the provider.
CPProperties.Add "Provider", "SQLOLEDB"
' Add the name value pair for the data source (server).
CPProperties.Add "Data Source", "ServerA"
' Add the name value pair for the database.
CPProperties.Add "Initial Catalog", "pubs"
' Add the name value pair for the user name.
CPProperties.Add "User ID", "UserName"
' Add the name value pair for the password.
CPProperties.Add "Password", "password"
' Set the table name. ' for SQL types it would be "database.dbo.table"
DBTable.Location = "Customer"
Screen.MousePointer = vbHourglass
' Set the report source of the viewer and view the report.
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
Screen.MousePointer = vbDefault
End Sub -
Customizing ActiveX Viewer for Crystal Reports 2008
Here's the scenario.
We have reports designed in Crystal Reports 2008, that are deployed on Business Objects 3.1 Infoview. All reports have Parameters for users to choose. All reports are expected to refresh on open.Some are dynamic some are standard static ones. There is an application developed in JAVA that is rendering these reports using the ActiveX viewer.
The users are not comfortable with the way reports look in JAVA viewer. Hence the choices are either HTML viewer or ActiveX viewer.
The application achieves this by making OpenDoc call to the report and using
sViewer=actx
as one of the parameters. Here's the issue that we run into. When users land on the parameter screen, the parameter screen alone Pops Up in a new window. Once all the parameter values are entered and the users clicks OK, the window vanishes and actual report is rendered in the original window.
If we use HTML viewer by setting
sViewer=html
The report Parameter screen is rendered in the main window without popping up. However we do not wish to use HTML viewer because, some of the reports are linked to other reports with OpenDoc calls. i. e. Parent report calls child report with a OpenDoc call. In the HTML viewer, when you click on the link to child report, it opens in same window despite setting
sWindow=new
in that opendoc call. Thereby losing parent report and no way to navigate back to it. This problem does not happen in ActivX viewer.There it seems to obey the command to open in new window.
Lastly you can recreate all this behavior by setting your viewer preferences in Info View settings.
So, here's my questions.
1. Should I use the .Net viewer instead of ActiveX Viewer ? If so, where can I find Syntax for the same ?
2. Can someone point me to documentation on the ActiveX Viewer ? Specifically making it not to Pop Up the Parameter Screen ?
3. Should the Java application use a different method other than Open Doc to cal the reports ? If so where can I get the details ?
Apologies for the long post. I tried to anticipate most of the questions that may arise in your mind. Thanks in advance for the time invested.Thank you Adam for the help.
I already have the Open Document document you mentioned. Can't seem to search for the KB article in Marketplace. No results found.
Just to clarify, I do not want to avoid the Parameter screen. Its the fact that it Pops Up in ActiveX viewer is the issue. The only thing I want in ActiveX viewer is to make that screen appear in main window just like HTML viewer.
I understand that there is no difference as far as opendoc is concerned between .Net or JAVA. I am looking for the SDK behind the viewers themselves.
To my third question, your answer is what I was looking for. But need a bit clarification.
>
Adam Stone wrote:
> If you do not like the functionality that OpenDocument provides, you could use the SDK to view the reports, but you will likely run into the same issue as you are running into when using the html viewer. The only workaround for that is to set a property on the viewer object in the SDK but it will affect all hyperlinks in the report not just a single one.
By setting Property in SDK for the viewer Object, are you referring to Meta Tag encapsulation such as
<a href= http://infoview.server.com/Infoview/opendoc/openDocument.jsp?iDocID=ABZR3Z&sIDType=CUID&&sType=wid&sRefresh=Y&sWindow=new>Report Title</a>
May be I didn't get your point with setting property. I know there is documentation on Viewer SDK. I just can't seem to find it. I hope it would answer the questions.
Edited by: SAMEER UPADHYE on Oct 6, 2010 5:46 PM -
Unable to print crystal report over web using ActiveX Control
Post Author: jimmyp
CA Forum: General
We have a problem with printing crystal report over web using ActiveX Control. When clicking print button, it only shows a blank dialog web crystal viewer page without any error. The page just simply hangs. We installed the PrintControl DLL and enable all the security setting for ActiveX Control for IE. It still does not print. Does anyone know why?
Environment.
Bundle Crystal Report v10
Asp.net 2.0
IE 6.0 or higher.
Appreciate for your help.
JimmyPost Author: Ian Kulmatycki
CA Forum: General
A team member here found this, I haven't read it, I'm not sure if our problems are related to this, but hopefully it helps someone:
-ian
When Secure Sockets Layer (SSL) is enabled, using the ActiveX control to print reports from a Crystal 10 DHTML viewer results in the following error message:
"A communication error occurred, printing will be stopped."
How can this error message be resolved?
Resolution
This is a known issue with Crystal Reports 10 and Crystal Enterprise 10 viewers and has been tracked. The Track ID is ADAPT00282199.
This error occurs due to the receiving application performing a case-sensitive check for the HTTPS request header value "ON". When a sender application sends the value as "on" in lower case, the error occurs. The update below changes the receiving application to be case-insensitive.
Hot Fixes or Service Packs address this issue as indicated below. With the updates, this issue is resolved.
Unless indicated otherwise, Weekly Hot Fix updates from our FTP site have only been tested with English versions of products.
For Crystal Reports 10 and Crystal Enterprise 10, the update for this issue is included in the Crystal 10 Viewers Weekly Hot Fix (WHF). This is available in English only at the following location:
ftp://ftp.crystaldecisions.com/outgoing/EHF/viewers10win_en.zip
This issue is addressed in the following components (and later versions):
PageObjectModel.dll, version 10.0.5.785, dated 8/25/2004
ReportRenderer.dll, version 10.0.5.785, dated 8/25/2004
WebReporting.dll, version 10.0.5.785, dated 8/25/2004 -
Crystal Report Addon Error : ActiveX Component Can't Create Object
Hello Experts,
We are facing an problem when we start the Crystal Report Addon .The error message getting
displayed is "CR_Crypto ActiveX Component Can't Create Object".This issue is happening only on the
server its working fine on the client. We had even unistalled and re-installed the addon in the server but
still it throws the error when we start the addon.
Please help us to resolve this issue
Thanks,
VishwanathDear Friend,
I had described the problem to our technical support team, and they replied as follows u2013
They solved the Script related error by several stages.
They checked the machine for any mal-ware existence by the tool provided by Microsoft (MS Mal-ware remover).
Then they tried by installing the following patches from Microsoft u2013
http://support.microsoft.com/kb/949140
Windows Script 5.7 for Windows XP
http://www.microsoft.com/downloads/details.aspx?familyid=887fce82-e3f5-4289-a5e3-6cbb818623aa&displaylang=en
Windows Script 5.6 for Windows Server 2003
http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en
Windows Script 5.6 for Windows XP and Windows 2000
The internal matter to this problem was about the following DLL and its version u2013
C:\WINDOWS\system32
vbscript.dll
5.5.0.8820
Desired
5.6.0.8820
Check, if the information helps you.
Maybe you are looking for
-
After recent update my ipad will not recognize my laptop in other devices
After the most recent update, my ipad and iphone does not recognize my laptop in other devices. I have uninstalled and reinstalled itunes and also updated itunes and nothing seems to work. Any suggestions would be greatly appreciated.
-
Client Web Service in Eclipse/JAVA
Hi All I am a beginner in Java. I am working on a web service project. Which is to be client/server. Thus being the Client in Eciplse environment and coding in JAVA. The Server is in VS.NET web service. The client sends a request to the server and th
-
I have set up a folder called Parallels-Shared in my home directory. I know it exists because I see it in spotlight and also when I view the folder listing in terminal. However, it does not appear in Finder. Why is this, and how can I make it visible
-
I am unable to install flash 9 on my intel mac. I have deleted firefox and its preferences. I have closed google desktop but still get the access denied message. Does anyone have any suggestions?
-
Apart from the obvious battery issues my green button has stopped working. i cant make calls or answer calls with it. the other day whilst taking a picture the red light on the camera came on and wouldn't go off either, so i had to remove the battery