Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: VS: Ms Word generation from asp.net


Message #1 by "Teemu Keiski" <wroxhelp@m...> on Wed, 28 Aug 2002 20:59:24 +0300
Teemu:

I have no trouble using ms word with vb.net but the same code won't work for asp.net.

Thanks

Henry Wolfe

--- "Teemu Keiski" <wroxhelp@m...> wrote:
>You could start by checking these links. There's info about how to use
>Word in VB.NET(syntax etc)
>
>http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;Q316383
>http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;Q301656
>http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;Q303294
>http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;Q315981
>
>More can be found at Microsoft's support also (use keywords "Visual
>Basic .NET Word") and there are some questions/answers on ASP.NET
>forums: http://www.asp.net/forums
>
>-------------------------
>Teemu Keiski
>Designer/Developer
>Mansoft tietotekniikka Oy
>Finland
>
>
>-----Alkuper=E4inen viesti-----
>L=E4hett=E4j=E4: Henry [mailto:henrywolfe@y...]
>L=E4hetetty: 28. elokuuta 2002 18:52
>Vastaanottaja: ASPX_Professional
>Aihe: [aspx_professional] Ms Word generation from asp.net
>
>
>I am having problems with ms word and asp.net and I am not sure how to
>correct it. Below is some of my code. When the code hits the
>wdApp.Documents.Open(sSourcePath) line of code it errors out with a
>
>System.NullReferenceException: Object reference not set to an instance
>of
>an object
>
>
>
>Please help
>
>
>
>Imports Word.DocumentClass
>
>Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
>System.EventArgs) Handles MyBase.Load
>
>GetDocument("C:\Documents\test.doc")
>End Sub
>
>
>Public Function GetDocument(ByVal sSourcePath) As String
>
>Dim wdApp As Word.Application
>Dim arrTags() As String
>Dim arrValues() As String
>Dim iLoop As Integer
>
>wdApp.Documents.Open(sSourcePath)
>
>End Function
>---
>
>ASP.NET 1.0 Namespace Reference with C#
>http://www.wrox.com/acon11.asp?ISBN=3D1861007442
>
>ASP.NET 1.0 Namespace Reference with VB.NET
>http://www.wrox.com/acon11.asp?ISBN=3D1861007450
>
>These books are a complete reference to the ASP.NET namespaces
>for developers who are already familiar with using ASP.NET.
>There is no trivial introductory material or useless .NET
>hype and the presentation of the namespaces, in an easy-to use
>alphabetical order ensures a user-friendly reference format.
>We provide in-depth coverage of all the major ASP.NET classes,
>giving you those real-world tips that the documentation doesn't
>offer, and demonstrating complex techniques with simple
>examples.=20
>
>---
>
>
>---
>
>ASP.NET 1.0 Namespace Reference with C#
>http://www.wrox.com/acon11.asp?ISBN=3D1861007442
>
>ASP.NET 1.0 Namespace Reference with VB.NET
>http://www.wrox.com/acon11.asp?ISBN=3D1861007450
>
>These books are a complete reference to the ASP.NET namespaces
>for developers who are already familiar with using ASP.NET.
>There is no trivial introductory material or useless .NET
>hype and the presentation of the namespaces, in an easy-to use
>alphabetical order ensures a user-friendly reference format.
>We provide in-depth coverage of all the major ASP.NET classes,
>giving you those real-world tips that the documentation doesn't
>offer, and demonstrating complex techniques with simple
>examples.
>
>---
>to unsubscribe send a blank email to leave-aspx_professional-1171988V@p...
>rox.com.

_____________________________________________________________
Get your free email account at www.yojam.com

_____________________________________________________________
Promote your group and strengthen ties to your members with email@y... by Everyone.net  http://www.everyone.net/?btn=tag

  Return to Index