Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8986711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:36:56+00:00 2026-06-15T21:36:56+00:00

I would like to copy the spool data for a given Windows print job

  • 0

I would like to copy the spool data for a given Windows print job to an arbitrary location on disk.

I have the job ID of the print job from the Print Spooler API. I know this job has finished spooling. I know the job won’t be deleted before I have time to complete whatever I need to do.

If file pooling is disabled, I can do this by looking in the spool directory for the file with format “xxxxx.spl”, where xxxxx is the 0-padded job ID.

How can I do this if file pooling is enabled?

I’d be delighted if there was a method that took a job ID and returned a stream of the spool data, but that seems unlikely at this point. Supposedly something similar might be possible using OpenPrinter with “PrinterName,Job xxxx” and ReadPrinter as documented here, but so far I haven’t been able to get it to work, and even if I do it looks like it loads the data into memory, and I’m not sure how this will work with large spool files (>1 GB is not unusual).

My second preference would be a way to pass in the ID and get back the location of the file with the spool data on disk (regardless of file pooling setting).

My third preference would be a way to map a pooled file (“FPyyyyy.spl”) to the job ID it’s for.

Are any of these feasible, or does anybody have a better idea about how to solve this issue?

(Edited to add since it wasn’t clear that we were aware of this option):
Our fallback is to require that our customers disable spool file pooling by editing the registry for each printer, but we would much prefer avoid this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:36:57+00:00Added an answer on June 15, 2026 at 9:36 pm

    I figured out why my calls to OpenPrinter were failing and I have successfully read the spool data using OpenPrinter and ReadPrinter, which solves our problem nicely.

    I’ll still award the bounty to anybody who comes up with a better solution, though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to copy the data from one table to another between different
I would like to copy data from an existing table say table1 to a
I have a large repository on a Windows machine. I would like to copy
Alright I have a gigantic list of files I would like to copy from
I have two DB real and backDB. I would like to copy everything from
i have a FAT16 image and i would like to copy the data stored
I would like to copy a file from one location to another, and replace
I would like to copy an array of pixel data (colors) into a texture.
I would like to copy a macro from one Excel workbook to another using
Hi I would like to copy all the files from a folder on my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.