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. Can the path to a file be determined from a print job?

Can the path to a file be determined from a print job?

Scheduled Pinned Locked Moved C / C++ / MFC
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.
  • T Offline
    T Offline
    the_grip
    wrote on last edited by
    #1

    Hi all, i am working on an application that interacts with a print driver. However, when i use the Win32 API calls (EnumJobs, etc.) to determine what file was printed and where it was located, i can only get the file name (not the path). In some cases, i will need to do some examination of the contents of a file - so i need the path. Does anyone know how to obtain such a thing (i fear it doesn't exist)?

    J 1 Reply Last reply
    0
    • T the_grip

      Hi all, i am working on an application that interacts with a print driver. However, when i use the Win32 API calls (EnumJobs, etc.) to determine what file was printed and where it was located, i can only get the file name (not the path). In some cases, i will need to do some examination of the contents of a file - so i need the path. Does anyone know how to obtain such a thing (i fear it doesn't exist)?

      J Offline
      J Offline
      Jose Lamas Rios
      wrote on last edited by
      #2

      the_grip wrote: Can the path to a file be determined from a print job? I don't think so. When you print a file, you do so with some application that reads the file, make API calls to create a print document with some name, draw some content in it, and ends the operation. You then can see the print queue in the operating system, but the OS knows nothing about whether what it has to print was based on a file, its location, or its content. The print document may have the same name as some file, but for the OS it's just a name and nothing else. -- jlr http://jlamas.blogspot.com/[^]

      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