I import SqlClient namespace all the time, but how do I reference to Word
and Excel? The "using Excel; //= Microsoft.Offic e.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.Offi ce.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.
"RiteshDotN et" <Ri**********@d iscussions.micr osoft.com> wrote in message
news:4F******** *************** ***********@mic rosoft.com...
<%@ Page Language="VB" %>
<%@ Register TagPrefix="Head erTag" TagName="Header Banner"
Src="header.asc x" %> <%@ import Namespace="Syst em.Data.SqlClie nt" %>
<%@ import Namespace="Syst em.Data" %>
<script src="clsBroadca st.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******** *****@TK2MSFTNG P15.phx.gbl... To create Excel file, you can Add Reference Visual Studio.NET, browse
to ...
and then select Microsoft.Offic e.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