Click to See Complete Forum and Search --> : using cr 9 in vb apps
bezaman
Feb 21st, 2006, 01:28 PM
I have a vb6 app that uses crystal reports 9 to view and print out some labels. I'm using the Package and Deployment Wizard to distribute my app. When I run the app on a machine other than the developer machine, I get this error:
Run-time error '-2147206461(80043ac3)'
File not found.
Can anyone tell me what is wrong?
Shuja Ali
Feb 21st, 2006, 01:35 PM
When do you get this Error?
Seems like you have not packaged the report file alongwith your setup package.
bezaman
Feb 21st, 2006, 02:01 PM
No, I packaged the report files. They are in the program folder. It seems like the error happens when it tries to display the report. None of the machines have CR9 on them except for my developer machine.
GaryMazzone
Feb 21st, 2006, 02:06 PM
Are the CR runtime file in place on the machines? Take a look at the readme with CR9 for a list of all required files and ensure that they are included in the Package.
Shuja Ali
Feb 21st, 2006, 02:08 PM
How are trying to access the report from the code? Can you post the that part of your code.
It seems to me that the program is not able to find the report file when you install it on the client PC.
bezaman
Feb 21st, 2006, 02:46 PM
This is the code I used to call the report:
Set Report = Appl.OpenReport("saturation_tags.rpt")
bezaman
Feb 21st, 2006, 02:49 PM
None of the machines have Crystal run times files installed. I'll see if I can find a list of the files from the readme.
Shuja Ali
Feb 22nd, 2006, 03:13 AM
None of the machines have Crystal run times files installed. I'll see if I can find a list of the files from the readme.
If you are using Package & Deployment Wizard then all the dependency files should have been included in the Setup Package.
RobDog888
Feb 22nd, 2006, 03:29 AM
You should have the Runtim.hlp help file. This help file describes each and every dll and ocx needed for every function, method, and control used in your CR/VB app. you just need to add each that you find as needed to your P&D setup and your good to go.
Its located in the directory -
?:\Program Files\Seagate Software\Crystal Reports\Developer Files\Help\Runtime.hlp
bezaman
Feb 22nd, 2006, 08:25 AM
Runtime.hlp does not exist on my computer.
Hack
Feb 22nd, 2006, 08:32 AM
This might help.
Runtime CR Requirements (http://support.businessobjects.com/library/kbase/articles/c2008238.asp)
bezaman
Feb 22nd, 2006, 09:44 AM
Still no luck getting it to work. I get the same error. What does it mean when the PDW cannont find dependency information for a file? Maybe this is my problem?
Shuja Ali
Feb 22nd, 2006, 10:01 AM
Still no luck getting it to work. I get the same error. What does it mean when the PDW cannont find dependency information for a file? Maybe this is my problem?
It seems to me that you are using Late-Binding. When you use Late Binding the PDW will not include the dependencies.
Have you added references to the specific crystal report libraries in your VB Project?
Can you post the code that is used to show the report and how the objects are declared?
bezaman
Feb 22nd, 2006, 11:13 AM
Dim Appl As New CRAXDRT.Application
Dim Report As New CRAXDRT.Report
CRViewer91.DisplayBorder = False
CRViewer91.DisplayTabs = False
CRViewer91.EnableRefreshButton = False
CRViewer91.EnableGroupTree = False
CRViewer91.EnableSearchControl = False
CRViewer91.EnableExportButton = True
CRViewer91.Top = 100
CRViewer91.Left = 100
CRViewer91.Height = 14300
CRViewer91.Width = 19000
If frmMain.OptFlat.Value = False Then
Set Report = Appl.OpenReport(App.Path & "\saturation_tags.rpt")
ElseIf frmMain.OptFlat.Value = True Then
Set Report = Appl.OpenReport(App.Path & "\saturation_tags_flats.rpt")
End If
CRViewer91.ReportSource = Report
CRViewer91.ViewReport
Do While CRViewer91.IsBusy
DoEvents
Loop
CRViewer91.Zoom 80
bezaman
Feb 22nd, 2006, 11:14 AM
And yes I have added the references.
RobDog888
Feb 22nd, 2006, 12:35 PM
Its not the P&Ds fault as its more of CR's fault that the dependancies are not found.
You are running CR 9 so its should be Runtime.chm instead. ;)
These are some of the ones for the CR Viewer control but remember I have 8.5 so it may be different for 9. Thats why you need to locate your helpfile.
CRYSTL32.OCX
MFCANS32.DLL
OLEPRO32.DLL
CRPE32.DLL
CRPAIG80.DLL
IMPLODE.DLL
MFC42.DLL
MSVCIRT.DLL
MSVCP60.DLL
bezaman
Feb 22nd, 2006, 12:42 PM
runtime.chm does not exist on my computer either. I'm using Crystal Reports Professional Version 9 SP5. Is there anywhere else I can find a list of the required runtime files?
RobDog888
Feb 22nd, 2006, 12:55 PM
I dont think so. Did you do a full install of CR?
bezaman
Feb 22nd, 2006, 02:37 PM
As far as I know, yes. Crytal runs fine. In the crystal web site it says that runtime.chm is only included with the Developer and Advanced editions of Crystal Reports 9. I am using the CR Pro 9 SP5, so it would seem that this file was not include in my installation. Here is the article:
http://support.businessobjects.com/library/kbase/articles/c2008238.asp
RobDog888
Feb 22nd, 2006, 02:39 PM
Yes, I got that from Hacks link in post #9. So I guess you can include most dlls and do a trial and error. It doesnt hurt, other then size of the setup.exe, to include more then you need.
bezaman
Feb 22nd, 2006, 02:42 PM
I found this article:
http://support.businessobjects.com/library/kbase/articles/c2012421.asp
I'm going to try and follow these guidelines and see what happens.
RobDog888
Feb 22nd, 2006, 02:45 PM
Cool, glad they at least give some kind of help on their support site. :thumb:
bezaman
Feb 22nd, 2006, 04:01 PM
I've almost got it it, but now I get this error:
UFL 'u25precisionid.dll' that implements this function is missing.
the dll is included in the package but I still get the error. Any suggestions?
RobDog888
Feb 22nd, 2006, 04:06 PM
No, sorry but was there anything on the cr site? Maybe an known issue?
bezaman
Feb 22nd, 2006, 04:09 PM
I'll check it out. I sorta know what it is referring to. I have some text in my crystal report that is turned into a barcode using the precision id barcode font. I created a formula in crystal to accomplish this. So I think this error has something to do with that.
bezaman
Feb 23rd, 2006, 09:46 AM
Ok, now I got another error:
Crystal Report Viwer not implemented.
Anyone seen this before?
RobDog888
Feb 23rd, 2006, 10:43 AM
Did you include CRYSTAL32.OCX?
bezaman
Feb 23rd, 2006, 11:11 AM
I searched my computer for this file and it does not exist.
RobDog888
Feb 23rd, 2006, 11:12 AM
That is the viewer controls file but for 8.5 Not sure if its different for 9.1
bezaman
Feb 23rd, 2006, 11:43 AM
I have these files included already:
comdlg32.ocx
mscomctl.ocx
I think these are the ones you're talking about.
RobDog888
Feb 23rd, 2006, 12:00 PM
Nope, those are for VB6 and not CR. Maybe search on businessobjects again for info pertaining to CR 9 and the viewer as it has to be there if you have the control on your form. It will be named the same as the component you added to your toolbox when you built your app.
bezaman
Feb 23rd, 2006, 12:12 PM
I use the Crystal Report Viewer Control 9 which utilizes the crviewer9.dll. I have this dll already included.
RobDog888
Feb 23rd, 2006, 12:16 PM
Try using Depends.exe on the crviewer9.dll andd see what special already not included files you need. Note it will pickup system api dependancies like user32.dll which you dont need to include.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.