473,804 Members | 2,455 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.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
Jul 21 '05 #1
3 2850
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

Jul 21 '05 #2

<%@ 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


Jul 21 '05 #3
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


Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3043
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) w.Application.Documents.Open("test.doc") With w.Application.Selection
3
2119
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 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
5
49832
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. To do this, I created a reference to "Microsoft Excel 11.0 Object Library", and have a "using Excel;" directive. I decided to add a method for creating a TextBox using the Shapes.AddTextBox method, which requires a
0
1094
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 because it says that when using Visual Studio Tools for Office, it prompts you to create an excel or word file, and then proceeds to tell you what to do with that file. Well, I have created the Excel project and it doesn't prompt me at all to...
7
11204
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 type or namespace name 'Excel' could not be found". the error points to line in my code: "public Excel.Application ExcelObj = null".
3
3541
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 reference to 11.0, however, then my application is compatible only with Excel 2003. Is that correct? I've found that, as long as I use a reference to Excel 9.0, I get a warning which says "There are updated custom wrappers available for the...
4
11593
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 ...... The problem is Excel.Application is not recognized. I have the Excell
2
5989
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 the Windows XP Pro system the app can interact with Word and Excel just fine. I'm pretty certain I have the correct Microsoft Word 11.0 Object Library and Microsoft Excel 11.0 Object Library references. All of my library references have Local Copy...
0
1289
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 the Windows XP Pro system the app can interact with Word and Excel just fine. I'm pretty certain I have the correct Microsoft Word 11.0 Object Library and Microsoft Excel 11.0 Object Library references. When I run the app on a Vista 32bit system...
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10561
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10302
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.