Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JOOLE objects

Status
Not open for further replies.

dinodigital

Technical User
Jun 24, 2007
9
0
0
AU

I was hoping to get some help with displaying the openFileDialog from within brio using a joole object. I have narrowed it down to this code:

var ComDlg = new JOOLEObject("MSComDlg.CommonDialog");
ComDlg.MaxFileSize = 1024;
ComDlg.DialogTitle = "Please select a file type and file"
ComDlg.Filter = "All Files|*.*"
ComDlg.ShowOpen();

var filename_string = ComDlg.FileName;

Console.Write(filename_string);

and once the user has selected the file, I need to be able to capture the filename/path for use in the brio document. For some reason I've been told that this example should work, but it doesn't. No dialog box pops up at all.

Could someone please shed some light on what else needs to be delcared for this to work. I'm guessing it has something to do with MSComDlg.CommonDialog and making sure it is referenced correctly.

Any help is greatly appreciated.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top