Hi,
I am learning VB.NET 2005 on my own and trying to convert an existing application in Access 2003 to .NET. I copied the code over and started with 63 errors; I have managed to work it down to only 3. These last 3 are giving me some problems. I'm not sure how to output to Excel from .NET like I was from Access. Here is my VBA code:
' Start Microsoft Excel and create a new Worksheet object.
strXLPath = "c:\Database\LIMS.xls"
xlWrksht = CreateObject("Excel.Sheet")
DoCmd.OutputTo(acOutputQuery, "DateIDAnl", acFormatXLS, _ strXLPath, True)
Sheet = xlWrksht.Workbooks.Open(strXLPath).Sheets(1)
' Make Excel visible
xlWrksht.Visible = True
Any suggestions, I'm working with MS Office 2003. Also, will this work if I move this application to an Intranet location? Everyone uses the same software as a standard at our locations.
Thanks in advance,
Al
I am learning VB.NET 2005 on my own and trying to convert an existing application in Access 2003 to .NET. I copied the code over and started with 63 errors; I have managed to work it down to only 3. These last 3 are giving me some problems. I'm not sure how to output to Excel from .NET like I was from Access. Here is my VBA code:
' Start Microsoft Excel and create a new Worksheet object.
strXLPath = "c:\Database\LIMS.xls"
xlWrksht = CreateObject("Excel.Sheet")
DoCmd.OutputTo(acOutputQuery, "DateIDAnl", acFormatXLS, _ strXLPath, True)
Sheet = xlWrksht.Workbooks.Open(strXLPath).Sheets(1)
' Make Excel visible
xlWrksht.Visible = True
Any suggestions, I'm working with MS Office 2003. Also, will this work if I move this application to an Intranet location? Everyone uses the same software as a standard at our locations.
Thanks in advance,
Al