PDA

Click to See Complete Forum and Search --> : Open Crystal Report file from VB automatically.


Dec 9th, 1999, 01:31 AM
I've been trying to figure out a way to create a VB program that will automatically open a Crystal Report file when I click on that file from Windows Explorer. What I did was make a simple form with a Crystal Report Control on it. Then I associated the *.rpt file type with that program so that when I click on that file type, Windows will launch my program to try and open that Crystal Report file. I figure it must be some kind of DDE solution, I think. It can't be that difficult of a thing to do. I just don't know what I'm doing wrong.

Thanks
Mario Giannone

Aaron Young
Dec 9th, 1999, 01:54 AM
Do you use the Command Function to retrieve the Filename when your Application is Launched, as it would be passed as a Parameter, eg.

Private Sub Form_Load()
Crystal1.ReportFileName = Command
Crystal1.Action = 1
End Sub


------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net