Signo.X
Well-known member
Hello all,
a quick question , whats a simple code to create/replace a basic excel work sheet using vb.net..
thats what i have so far ..
but thats only open the file in the background and doesnt display it , i cant find any code that will "create" an excel document and then open it to the user...???
Thanks in Advance!!
~Signo.X
a quick question , whats a simple code to create/replace a basic excel work sheet using vb.net..
thats what i have so far ..
VB.NET:
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] xa [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] Application[/SIZE]
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] xwb [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] Workbook[/SIZE]
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] xws [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] Worksheet[/SIZE]
[SIZE=2][COLOR=#0000ff]Try[/COLOR][/SIZE]
[SIZE=2]xwb = xa.Workbooks.Open([/SIZE][SIZE=2][COLOR=#800000]"C:\test.xsl"[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2]xwb.Activate()[/SIZE]
but thats only open the file in the background and doesnt display it , i cant find any code that will "create" an excel document and then open it to the user...???
Thanks in Advance!!
~Signo.X