You are viewing limited content. For full access, please sign in.

Question

Question

print to snapshot

asked on March 11, 2016

Our users print reports to Laserfiche's Snapshot.  For each report they assign the volume.  Is it possible to automate this processing using the SDK?

 

I found this in the SDK documentation for the SnapshotDriver Class however I'm not sure how step 3 (bolded below) is accomplished:

 

Using this class involves five steps: 1) attach to the Snapshot printer using the AttachToPrinter method; 2) call PrepareBatch with the settings that you would like Snapshot to use; 3) send your print job or jobs to the Snapshot printer; 4) call WaitForJob to wait for Snapshot to finish processing a print job (call this once per job); 5) call CompleteBatch to signal that you are done queuing print jobs. Between calls to PrepareBatch and CompleteBatch you may queue multiple print jobs; call WaitForJob once for each job that is queued. Multiple rounds of PrepareBatch and CompleteBatch can be run after attaching to the Snapshot printer. Dispose of SnapshotDriver instances when they are no longer needed. The CompleteBatch method does not free all allocated resources.

 

Does anyone have a small code snippet they can share to get me started?  Basically, I'm wondering how to initiate the print job while associating that job with any SnapshotDriverSettings that I will configure using C# code.

 

Thanks,

Bill

0 0

Replies

replied on March 21, 2016

Hi Bill,

There currently isn't a way to automate the printing of documents outside of Laserfiche to Snapshot, which is simply a printer driver. Step 3) assumes that the print job is initiated manually.

The SDK 9.1 documentation addresses this:

"Note that [Document Services] does not enable direct unattended Snapshot printing. You must still initiate the print job outside of using Document Services."

Therefore, you would be able to specify the settings beforehand, but the printing to snapshot would still be manual.
 

Another option would be creating Import Agent profiles with predefined volume settings, and exporting the reports to Import Agent's monitored folders. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.