473,241 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,241 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 2802
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bernd Muent | last post by:
Hi together, I am using the following code in Visual Basic to open Word or Excel applications: Word: Dim w As Word.Application w = CType(CreateObject("Word.application"), Word.Application)...
3
by: Whoever | last post by:
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...
5
by: Michael Russell | last post by:
Hi all, Using C#, I've created a simple wrapper class for using Excel. I have Office Pro 2003 installed on my devel machine. The wrapper class works great, reading and writing to/from Excel. ...
0
by: et | last post by:
I am trying to follow http://msdn2.microsoft.com/en-us/library/aa701256(office.11).aspx#Office2003Integratingwithaspnet20_CreatingtheWord2003DocumentTemplate which appears to be absolutely useless...
7
by: Eran.Yasso | last post by:
Hi, I have project that automate excel(using Excel COM) which works fine in my home. I took the project from my home to work and tried to build the project but it won't built. I get error "The...
3
by: TC | last post by:
My project has a reference to the Excel 9.0 Object Library. My understanding is that, by using a reference to 9.0, I make my application compatible with Excel 2000, 2002, and 2003. If I use a...
4
by: Looch | last post by:
Thanks in advance for any help. I'm having trouble with this code: Dim xlsApp As Excel.Application Dim xlsWB As Excel.Workbook xlsApp = New Excel.Application xlsApp.Visible = True ...... ...
2
by: John Heitmuller. | last post by:
Hi, I have a VB.Net application that I have recently upgraded from Visual Studio 2003 to Visual Studio 2005. The VB.Net app accesses Word and Excel. When I run the newly compiled VB.Net app on...
0
by: John Heitmuller. | last post by:
Hi, I have a VB.Net application that I have recently upgraded from Visual Studio 2003 to Visual Studio 2005. The VB.Net app accesses Word and Excel. When I run the newly compiled VB.Net app on...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.