Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Detect MS word's print command in .Net application

Detect MS word's print command in .Net application

Scheduled Pinned Locked Moved Web Development
csharpquestioncareer
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hemant Thaker
    wrote on last edited by
    #1

    Hi... If a user open MSword and gives print command, how my .net application will identify it ? Remember i am talking about the prior stage of print dialog box.... I want that , if a user click print command in file menu of msword, the print dialog box should not be displayed , but he should be redirected to our .net application..... For this i make my application in run mode and used Timer control's tick event and i want to detect here, -- the prior stage of print job from MSWord.... awaiting Hemant

    By: Hemant Thaker

    M D 2 Replies Last reply
    0
    • H Hemant Thaker

      Hi... If a user open MSword and gives print command, how my .net application will identify it ? Remember i am talking about the prior stage of print dialog box.... I want that , if a user click print command in file menu of msword, the print dialog box should not be displayed , but he should be redirected to our .net application..... For this i make my application in run mode and used Timer control's tick event and i want to detect here, -- the prior stage of print job from MSWord.... awaiting Hemant

      By: Hemant Thaker

      M Offline
      M Offline
      Marc Firth
      wrote on last edited by
      #2

      :doh: Well I suggest you ask microsoft if there is an api for what you want to do (which I doubt) or if you could have their source code... I don't think microsoft will like you pulling apart their software though. I suggest you create a software printer (google "dopdf") that posts the data to your web app. Not a simple task.

      Neonlight

      1 Reply Last reply
      0
      • H Hemant Thaker

        Hi... If a user open MSword and gives print command, how my .net application will identify it ? Remember i am talking about the prior stage of print dialog box.... I want that , if a user click print command in file menu of msword, the print dialog box should not be displayed , but he should be redirected to our .net application..... For this i make my application in run mode and used Timer control's tick event and i want to detect here, -- the prior stage of print job from MSWord.... awaiting Hemant

        By: Hemant Thaker

        D Offline
        D Offline
        denishverma
        wrote on last edited by
        #3

        You can try this link for this issue - http://www.anupshinde.com/Articles/WordInDotnet/[^]

        H 1 Reply Last reply
        0
        • D denishverma

          You can try this link for this issue - http://www.anupshinde.com/Articles/WordInDotnet/[^]

          H Offline
          H Offline
          Hemant Thaker
          wrote on last edited by
          #4

          Hi.. thanks for your support.... You are right , so far as accessing any ms word document in our application is concerned. but what my reqirement is ... My application in .Net is already running, and if some one opens MS word and gives print command, the print dialog box should not appear , but one windows form in my running .net application should popup thats it... so which process is responsible to generate print dialog box in ms word... and what i can do is bypass this dialog box and pop up my form... please do me a favour and find something i u can... thanks n awaiting... Hemant

          By: Hemant Thaker

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups