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. General Programming
  3. C / C++ / MFC
  4. how to get the file's full path from printer queue?

how to get the file's full path from printer queue?

Scheduled Pinned Locked Moved C / C++ / MFC
sysadmindata-structurestutorialquestioncareer
2 Posts 2 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.
  • S Offline
    S Offline
    szcococut
    wrote on last edited by
    #1

    I use the EnumJob to get the job from printer my local or network printer. every job include pszdocument,page,bytes,user so on . if I use microsoft word to print,the pszdocument is only the file name,just "microsoft word 11.doc". but if Use UltraEdit to print,the pszdocument is the file's full path,just "c:\\tmp\1.txt". why? I want to know the file's full path by using word to print, how to do that? -- modified at 21:19 Sunday 30th October, 2005

    Mircea PuiuM 1 Reply Last reply
    0
    • S szcococut

      I use the EnumJob to get the job from printer my local or network printer. every job include pszdocument,page,bytes,user so on . if I use microsoft word to print,the pszdocument is only the file name,just "microsoft word 11.doc". but if Use UltraEdit to print,the pszdocument is the file's full path,just "c:\\tmp\1.txt". why? I want to know the file's full path by using word to print, how to do that? -- modified at 21:19 Sunday 30th October, 2005

      Mircea PuiuM Offline
      Mircea PuiuM Offline
      Mircea Puiu
      wrote on last edited by
      #2

      The pDocumen member of the JOB_INFO_2 structure points to a null-terminated string that specifies the name of the print job, as it was communicated by the thread/app which ordered the printing. MS Word communicates something like this: MS-WORD: YourDocument.doc, while UltraEdit seems to communicate more. You / we must think of another way of getting that information (if possible) SkyWalker

      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