Printing Word document problem

Discussion in 'ASP .Net' started by Youss33@-NOSPAM-hotmail.com, Aug 3, 2004.

  1. Guest

    I have a problem printing a word document from an ASP.NET application.

    the Application doesn't send an error back but the document is not printed and the document is kept open by the application (I can't kill the winword procees: access denied).
    her is the code i use:

    oWordApp = New Word.ApplicationClass
    oWordDoc = oWordApp.Documents.Add("d:\\coucou2.doc")
    oWordDoc.Activate()
    oWordDoc.PrintOut()
    oWordDoc.Close()
    oWordApp.Quit()

    What is going wrong?

    thanks for helping me out there.

    Youss

    ---
    Posted using Wimdows.net NntpNews Component -

    Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
    , Aug 3, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ewolfman
    Replies:
    9
    Views:
    2,004
    ewolfman
    May 18, 2006
  2. srk
    Replies:
    0
    Views:
    635
  3. srk
    Replies:
    0
    Views:
    606
  4. Michael G. Schneider

    Modifying a Word document without using Word Automation

    Michael G. Schneider, Dec 15, 2003, in forum: ASP General
    Replies:
    5
    Views:
    279
    el.c. - myLittleTools.net
    Dec 16, 2003
Loading...

Share This Page