Showing posts with label program. Show all posts
Showing posts with label program. Show all posts

Sunday, March 25, 2012

crystal32.ocx in Crystal Reports 8.5

Do we have crystal32.ocx component in crystal 8.5 ? I have installed crystal 8.5, but my VB program complains that "crystal32.ocx" is missing. When i looked for this component on my machine, i found that it is not there.Hi,

Reinstall the crystal reports, In setup select custom option enable the all feature to install.

Thanks & Regards,
K.Babu

Do we have crystal32.ocx component in crystal 8.5 ? I have installed crystal 8.5, but my VB program complains that "crystal32.ocx" is missing. When i looked for this component on my machine, i found that it is not there.sql

Tuesday, March 20, 2012

Crystal Reports 9 - end user printing problem

Crystal generates reports based on user parameters from my .asp program. It works fine from all but one users PC. This user prints "chinese" or "garbage" when they hit the print button. It doesn't matter what printer they print to, the screen displays fine, but the report is "garbage." Any suggestions?If it's just the one computer, maybe you need update the printer drivers?

Crystal Reports 10 and VB6

I am new to using Crystal Reports with VB.
I am trying to call a crytsl reports reports from a vb program any ideas will help.
Thanks in advance.Here's one example. You create a recordset in VB. You need to have "Crystal Report Engine 8 Object Library" in order for this to work. This example is based off Crystal Reports 8.5, so you'll have to adjust it to your needs for version 10.

Dim CrApp1 As New CRPEAuto.Application
Dim CrRep As CRPEAuto.Report
Dim CrDB As CRPEAuto.Database
Dim CrTables As CRPEAuto.DatabaseTables
Dim CrTable As CRPEAuto.DatabaseTable

'open report
Set CrRep = CrApp1.OpenReport(strReportPath)

'set the database object to the reports database
Set CrDB = CrRep.Database

'Set the databasetables object
Set CrTables = CrDB.Tables

'set the databasetable object to the first table in the report
Set CrTable = CrTables(1)

'sets ADO recordset as the data for the first table
CrTable.SetPrivateData 3, rsData

'preview the report with the recordset as the data
CrRep.Preview

You can also use Report Designer Component (RDC). It's set up similar, but I just started playing around with it and can't get it to work yet. Do a search on Crystal's website. They have PLENTY of code examples for RDC.

http://support.businessobjects.com/search/advsearch.asp

Monday, March 19, 2012

Crystal Report with setup

hi friends
what is the required files that must be attached with the setup package
cause i got a problem when i install my program it gives me an error cause of crystal report files.
thanksHai,
If U are not a registered User U can find the Key Number for Crystal reports in Help menu.Copy that and paste when asked for registrartion key...
under Regwiz.msm merge module...bufore your build

regards
Kolluru.|||thank u for your reply

but here the problem not with the installation of crystal report itself but with my program.

i have a program used visual basic and i use crystal report for the reports
the program is working fine and i made setup package for it and i install it
with the same system that crystal report installed but when i run my program it give run time error.
so what is the proplem here with the run time error and what the crystall report i should includ with with the setup package.
regards
hussein

Crystal Report with C++

Hi all,
I'm tyieng to write a program in C++ wich uses Crystal Report facilities to design a report and print it. The problem is that its use with Crystal Report 8 is correct.
It returns in
((CMainFrame*)theApp.m_pMainWnd)->m_cDialog.m_CrystalCtrl.PrintReport() a 0, wich means there is no error...
When I used with Crystal Report 9 installed in my machine
((CMainFrame*)theApp.m_pMainWnd)->m_cDialog.m_CrystalCtrl.PrintReport() returns a diferent number: 20525...
PrintReport is the name of the method's name Crystal Report Object.
Could anybody help me?
Thanks a lot.
BeaThere are a lot of differences between Crystal Reports 8 and 9. Although I don't know the exact differences, I do know that sometimes newer versions are NOT backward compatible with older versions. The function you're using in v8 was probably replaced with a different function in v9.

My suggestion is determine which version you want to work with and stick with it. Modify all your reports to work with one version or the other and make sure all your dlls are the same version.

Sunday, March 11, 2012

Crystal Report problem???

hello all gurus...
i have complied my program in vb 6 and crystal report 7 and when i install the set up and run in the computer it gives problem to open crystal report .Giving the following error:

Runtime Error 20533

Unable to open Database

So please help me Gurus.

thanks

Kesang Ti also get that error in WindowsXP, so i try to fixed it by point then location of the databases directly.
u can try it.

Crystal Report 10.0

I have some problems with Crystal Report program.

In my project I use VB 6.0 with SP6 and Crystal Report 10.0
The operating system is: Windows XP SP2

When I open the project, the system gives me this error message:
(Error during load: the Crystl32.ocx file could not be loaded)

Also I can not export my project as .exe because of the above problem.

I tried to replace the file of Crystl32.ocx with new versions but the problem is still being.

Also I tried to register the Crystl32.ocx file by using this command:
(Regsvr32 D:\Windows\System\crystl32.ocx /u) but this command does not work and the problem is still being.

please help me.

Thanks;As far as I know, crystl32.ocx component was dropped starting from CR9. You will have to either redesign your application to use RDC, or distribute the old crystl32.ocx with your application. Crystl32.ocx will require CRPE32.DLL and CRPAIG80.DLL files to register and work properly.

Thursday, March 8, 2012

Crystal Report 10.0

I have some problems with Crystal Report program.

In my project I use VB 6.0 with SP6 and Crystal Report 10.0
The operating system is: Windows XP SP2

When I open the project, the system gives me this error message:
(Error during load: the Crystl32.ocx file could not be loaded)

Also I can not export my project as .exe because of the above problem.

I tried to replace the file of Crystl32.ocx with new versions but the problem is still being.

Also I tried to register the Crystl32.ocx file by using this command:
(Regsvr32 D:\Windows\System\crystl32.ocx /u) but this command does not work and the problem is still being.

please help me.

Thanks;As far as I know, crystl32.ocx component was dropped starting from CR9. You will have to either redesign your application to use RDC, or distribute the old crystl32.ocx with your application. Crystl32.ocx will require CRPE32.DLL and CRPAIG80.DLL files to register and work properly.

Crystal Report (please help me)

I have some problems with Crystal Report program.

In my project I use VB 6.0 with SP6 and Crystal Report 10.0
The operating system is: Windows XP SP2

When I open the project, the system gives me this error message:
(Error during load: the Crystl32.ocx file could not be loaded)

Also I can not export my project as .exe because of the above problem.


I tried to replace the file of Crystl32.ocx with new versions but the problem is still being.

Also I tried to register the Crystl32.ocx file by using this command:
(Regxvr32 D:\Windows\System\crystl32.ocx /u) but this command does not work and the problem is still being.

please help me.

Thanks;command to register file is not

"Regxvr32"

but "Regsvr32"

Wednesday, March 7, 2012

Crystal Error

HI ,

I'm trying to print a rpt. file ( C.R. 8.5) from a VB.net program
code :

Dim Reporte As New crAlmacen
Dim x As String = Reporte.FilePath()
Dim x1 As String = Reporte.ResourceName
Reporte.SetDatabaseLogon("termi", "termi", "SERVIDOR1", "mestres")
Reporte.Refresh()
' Reporte.PrintOptions.PrinterName = "Lexmark Optra S 2455"

Reporte.PrintToPrinter(1, False, 1, 1)

An unhandled exception of type 'CrystalDecisions.CrystalReports.Engine.InvalidArgumentException' occurred in crystaldecisions.crystalreports.engine.dll

Additional information: Error in File C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\temp_50488d2a-21be-4a5a-a4df-ad83112d6274.rpt:
Invalid printer specified.

thanks a lotHI ,

I HAVE SOLVED THE PROBLEM

Dim Reporte As New crAlmacen
Dim x As String = Reporte.FilePath()
Dim x1 As String = Reporte.ResourceName
Reporte.SetDatabaseLogon("termi", "termi", "SERVIDOR1", "mestres")
Reporte.Refresh()

NEW CODE LINE
---------------------
Reporte.PrintOptions.PaperSource = CrystalDecisions.[Shared].PaperSource.Auto
---------------------
' Reporte.PrintOptions.PrinterName = "Lexmark Optra S 2455"
Reporte.PrintToPrinter(1, False, 1, 1)

AND NOW GO RIGHT

BEST REGARDS|||Glad that's sorted :D