|
-
May 30th, 2007, 10:39 AM
#1
Thread Starter
New Member
Open file in VB from database?!
I'm fairly new to access, VB, and Crystal reports. I have a button that i click in access that generates a table that is read in crystal. I want the .rpt file to lauch automatically after a build button is clicked that exists. I simply dont know what the code is to open a file rather than an application.
-
May 30th, 2007, 10:59 AM
#2
Re: Open file in VB from database?!
Welcome to the forums. 
I'm bit confused over the question. Do you want Crystal Reports to open the .rpt file or VB?
-
May 30th, 2007, 11:01 AM
#3
Thread Starter
New Member
Re: Open file in VB from database?!
sorry i was unclear,
when a button is clicked in access i want it to launch a crystal reports file (.rpt)
So the VB in Access needs to accomodate the opening of the file
-
May 31st, 2007, 08:27 AM
#4
Re: Open file in VB from database?!
Place The crystal report control on the form,(Common\Tools\VB\Crystl32.exe)
connect it to the report file name.Place these code on button click.
Code:
CrystalReports1.ReportFilename="C:\Folder\Report1.rpt"
CrystalReports1.Action=1
(CrystalReports1 is the control name)
-
May 31st, 2007, 08:41 AM
#5
Thread Starter
New Member
Re: Open file in VB from database?!
I dont know what you mean or where to find "The crystal report control" and how to put it on a form? Also, I have no Common option from the menu bar nor a VB selection inside tools
-
May 31st, 2007, 10:10 PM
#6
Re: Open file in VB from database?!
Check this site
http://www.vbexplorer.com/VBExplorer...al_reports.asp
Go to project components and browse for Common\Tools\VB\Crystl32.exe to add CR control to your project
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|