-
using cr 9 in vb apps
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?
-
Re: using cr 9 in vb apps
When do you get this Error?
Seems like you have not packaged the report file alongwith your setup package.
-
Re: using cr 9 in vb apps
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.
-
Re: using cr 9 in vb apps
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.
-
Re: using cr 9 in vb apps
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.
-
Re: using cr 9 in vb apps
This is the code I used to call the report:
VB Code:
Set Report = Appl.OpenReport("saturation_tags.rpt")
-
Re: using cr 9 in vb apps
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.
-
Re: using cr 9 in vb apps
Quote:
Originally Posted by bezaman
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.
-
Re: using cr 9 in vb apps
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
-
Re: using cr 9 in vb apps
Runtime.hlp does not exist on my computer.
-
Re: using cr 9 in vb apps
-
Re: using cr 9 in vb apps
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?
-
Re: using cr 9 in vb apps
Quote:
Originally Posted by bezaman
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?
-
Re: using cr 9 in vb apps
VB Code:
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
-
Re: using cr 9 in vb apps
And yes I have added the references.
-
Re: using cr 9 in vb apps
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
-
Re: using cr 9 in vb apps
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?
-
Re: using cr 9 in vb apps
I dont think so. Did you do a full install of CR?
-
Re: using cr 9 in vb apps
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/l...s/c2008238.asp
-
Re: using cr 9 in vb apps
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.
-
Re: using cr 9 in vb apps
I found this article:
http://support.businessobjects.com/l...s/c2012421.asp
I'm going to try and follow these guidelines and see what happens.
-
Re: using cr 9 in vb apps
Cool, glad they at least give some kind of help on their support site. :thumb:
-
Re: using cr 9 in vb apps
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?
-
Re: using cr 9 in vb apps
No, sorry but was there anything on the cr site? Maybe an known issue?
-
Re: using cr 9 in vb apps
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.
-
Re: using cr 9 in vb apps
Ok, now I got another error:
Crystal Report Viwer not implemented.
Anyone seen this before?
-
Re: using cr 9 in vb apps
Did you include CRYSTAL32.OCX?
-
Re: using cr 9 in vb apps
I searched my computer for this file and it does not exist.
-
Re: using cr 9 in vb apps
That is the viewer controls file but for 8.5 Not sure if its different for 9.1
-
Re: using cr 9 in vb apps
I have these files included already:
comdlg32.ocx
mscomctl.ocx
I think these are the ones you're talking about.
-
Re: using cr 9 in vb apps
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.
-
Re: using cr 9 in vb apps
I use the Crystal Report Viewer Control 9 which utilizes the crviewer9.dll. I have this dll already included.
-
Re: using cr 9 in vb apps
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.