473,382 Members | 1,386 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,382 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 2815
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.