471,339 Members | 1,242 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,339 software developers and data experts.

How to reference Word/Excel without using Visual Studio project

To create Excel file, you can Add Reference Visual Studio.NET, browse to ...
and then select Microsoft.Office.Interop.Excel, etc. It endsup some
reference to GUID in project file. You can then import namespace and create
Excel file etc.

Is it possible to do this in one aspx page without using VS project and code
behind? Thanks
Jul 21 '05 #1
3 2688
why is this multi-posted to the entire world?

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://tinyurl.com/27cok
----------------------------------------------------------
"Whoever" <bz****@hotmail.com> wrote in message
news:O4*************@TK2MSFTNGP15.phx.gbl...
To create Excel file, you can Add Reference Visual Studio.NET, browse to
...
and then select Microsoft.Office.Interop.Excel, etc. It endsup some
reference to GUID in project file. You can then import namespace and
create
Excel file etc.

Is it possible to do this in one aspx page without using VS project and
code
behind? Thanks

Jul 21 '05 #2

<%@ Page Language="VB" %>
<%@ Register TagPrefix="HeaderTag" TagName="HeaderBanner" Src="header.ascx" %>
<%@ import Namespace="System.Data.SqlClient" %>
<%@ import Namespace="System.Data" %>
<script src="clsBroadcast.vb" runat="server"></script>

By writing this in ur aspx page and codebehind u can write in .vb file
with the help of this u dont required VS ID

"Alvin Bruney [MVP]" wrote:
why is this multi-posted to the entire world?

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://tinyurl.com/27cok
----------------------------------------------------------
"Whoever" <bz****@hotmail.com> wrote in message
news:O4*************@TK2MSFTNGP15.phx.gbl...
To create Excel file, you can Add Reference Visual Studio.NET, browse to
...
and then select Microsoft.Office.Interop.Excel, etc. It endsup some
reference to GUID in project file. You can then import namespace and
create
Excel file etc.

Is it possible to do this in one aspx page without using VS project and
code
behind? Thanks


Jul 21 '05 #3
I import SqlClient namespace all the time, but how do I reference to Word
and Excel? The "using Excel; //= Microsoft.Office.Interop.Excel;" in code
behind page requires some reference in project file. But I want them all in
one ASPX page. How do I do that? Thanks

<Reference
Name = "Office"
Guid = "{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}"
VersionMajor = "2"
VersionMinor = "1"
Lcid = "0"
WrapperTool = "tlbimp"
/>
<Reference
Name = "Excel"
Guid = "{00020813-0000-0000-C000-000000000046}"
VersionMajor = "1"
VersionMinor = "3"
Lcid = "0"
WrapperTool = "tlbimp"
/>
<Reference
Name = "Microsoft.Office.Core"
Guid = "{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}"
VersionMajor = "2"
VersionMinor = "3"
Lcid = "0"
WrapperTool = "primary"
/>

Sorry for the multiposting. I thought it won't hurt in news group like in
message board, since one reply will take care of them all.

"RiteshDotNet" <Ri**********@discussions.microsoft.com> wrote in message
news:4F**********************************@microsof t.com...

<%@ Page Language="VB" %>
<%@ Register TagPrefix="HeaderTag" TagName="HeaderBanner" Src="header.ascx" %> <%@ import Namespace="System.Data.SqlClient" %>
<%@ import Namespace="System.Data" %>
<script src="clsBroadcast.vb" runat="server"></script>

By writing this in ur aspx page and codebehind u can write in .vb file
with the help of this u dont required VS ID

"Alvin Bruney [MVP]" wrote:
why is this multi-posted to the entire world?

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://tinyurl.com/27cok
----------------------------------------------------------
"Whoever" <bz****@hotmail.com> wrote in message
news:O4*************@TK2MSFTNGP15.phx.gbl...
To create Excel file, you can Add Reference Visual Studio.NET, browse to ...
and then select Microsoft.Office.Interop.Excel, etc. It endsup some
reference to GUID in project file. You can then import namespace and
create
Excel file etc.

Is it possible to do this in one aspx page without using VS project and code
behind? Thanks


Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Bernd Muent | last post: by
5 posts views Thread by Michael Russell | last post: by
reply views Thread by et | last post: by
7 posts views Thread by Eran.Yasso | last post: by
4 posts views Thread by Looch | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.