howzit guys..

the following sub creates an Excel object, manipulates it,
then saves it to disc.
VB Code:
  1. Private Sub Expo(ByVal t As String, ByVal name As String)
  2.         Dim tmp As String
  3.         tmp = "c:\Done Reports\" & Date.Today.ToString("MMM,dd") & "\" & Me.Name.ToString
  4.         If Directory.Exists(tmp) = False Then Directory.CreateDirectory(tmp)
  5.         Dim oExcel As Object
  6.         Dim oBook As Object
  7.         oExcel = CreateObject("Excel.Application")
  8.         oBook = oExcel.Workbooks.Add
  9.         oBook.worksheets(1).range("A1").select()
  10.         oBook.worksheets(1).paste()
  11.         System.Windows.Forms.Clipboard.Clear()
  12.         System.Windows.Forms.Clipboard.SetDataObject(t)
  13.         oBook.worksheets(1).range("A44").select()
  14.         oBook.worksheets(1).paste()
  15.         oBook.SaveAs(tmp & "\" & name & ".xls")
  16.         oExcel.Quit()
  17.         oExcel = Nothing
  18.         GC.Collect()
  19.     End Sub
the "Intellisence" feature of oExcel and oBook doesnt jump.
i.e. for oExcel Intellisence options are 5 methods (tostring, gettype etc..)
maybe is a declaration issue.. here are the declarations:
VB Code:
  1. Imports system
  2. Imports System.IO
  3. Imports System.Data
  4. Imports System.Data.SqlClient
  5. Imports System.Windows.Forms
  6. Imports GraphicsServer.GSNet.Charting
  7. Imports GraphicsServer.GSNet.SeriesData
  8. Imports System.Drawing
  9. Imports Microsoft.Office
  10. Imports Microsoft.Office.Interop

any idea why intellisence doesnt pop???

thanks in advance for suggestions

regards,
-j