Groups | Blog | Home
all groups > asp.net > november 2004 >

asp.net : com in asp.net?


rom
11/6/2004 9:31:56 PM
Hi,

I have an asp.net application where I need to open the
word application and perform some tasks. In the old days I
would do that in a com and I wanted to know which is the
best way to do it in the .net environment? for now I added
a new vb.net file and created the classes in there, so I
can create an instance of the mail class from the vb.net
codebehind page....

Steve C. Orr [MVP, MCSD]
11/7/2004 12:06:40 PM
Here's some best practices on the subject of exporting to Word and Excel
from ASP.NET:
http://www.aspnetpro.com/NewsletterArticle/2003/09/asp200309so_l/asp200309so_l.asp

Here's a fine 3rd party product that could make things significantly easier
for you:
http://officewriter.softartisans.com/officewriter-189.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


[quoted text, click to view]

Scott Allen
11/7/2004 1:29:43 PM
You can still use the same COM interfaces and components from .NET.
There are a lot of KB articles on the subject if you search around,
here is one:

HOW TO: Automate Word from Visual Basic .NET to Create a New Document
http://support.microsoft.com/kb/316383/EN-US/

and the obligatory caveat:

INFO: Considerations for Server-Side Automation of Office
http://support.microsoft.com/kb/257757

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 6 Nov 2004 21:31:56 -0800, "rom" <nice_guy@inter.net.il>
[quoted text, click to view]
rom
11/8/2004 1:07:21 AM
Thanks for the replys! Anyway, I don't have a problem with
office automation. The question was much more general -
where should I put classes that I create if I want them to
be available in more than 1 application? I put it now in a
vb.net file that I added to the solution but is that
the "correct" way?

Thanks!


[quoted text, click to view]
Steve C. Orr [MVP, MCSD]
11/8/2004 10:11:16 AM
The "correct" place to put them is in the GAC.
Here's more info:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxconInstallingToGlobalAssemblyCache.asp
http://www.aspzone.com/articles/john/GAC/

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


[quoted text, click to view]

AddThis Social Bookmark Button