So, I've got a project to do. I query a database based on some parameters entered by the user, display the data in a DataGridView, let the user play with it a bit, he selects data and those selected rows go into another DataGridView where the user can play with it some more, user repeats the search and select process until he's done.
Now, the user clicks the "Export" button. Excel template file loads, fields are populated based on selected rows.
Now, here's the tricky part. I need this programmatically modified Excel workbook to launch into Excel. I can save the workbook. I can launch a web browser with the web-generated version. I can Print Preview the workbook.
But, I cannot for the life of me get the workbook to open in Excel.
Can anyone tell me which method I need to use to launch Excel with this workbook pre-loaded? I would love you to bits and pieces!
Edit: Figured it out... excel.Visible = true... I swear... Arg!
Now, the user clicks the "Export" button. Excel template file loads, fields are populated based on selected rows.
Now, here's the tricky part. I need this programmatically modified Excel workbook to launch into Excel. I can save the workbook. I can launch a web browser with the web-generated version. I can Print Preview the workbook.
But, I cannot for the life of me get the workbook to open in Excel.
Can anyone tell me which method I need to use to launch Excel with this workbook pre-loaded? I would love you to bits and pieces!
Edit: Figured it out... excel.Visible = true... I swear... Arg!
