Jump to content

Wait for printing finished


Recommended Posts

Hi all,

 

I need some help... You'll read 'TestStand' a few times but it is a LabVIEW problem  :)

 

In my current project I have 4 testsetups all running teststand sequences. The 4 PC's are connected to a network and there is 1 network printer.

 

I need automatic printing of the teststand reports and I want to wait until printing has finished.

 

I discovered that automatic report printing in teststand is not that easy (don't understand why but ...).

I found a LabVIEW workaround here (and also asked my question there)

I implemented this 'Action'in my sequential model and this works fine.

 

So the VI opens the xml report in a webbrowser window and it prints.

 

So far so good, but I would like that vi to wait until printing is finished or at least until it is successfully sent to the printer.

 

I tried making another vi that reads the default printer queue via a .NET constructor node etc etc .

I can see my printjob (because I now the useraccount that submitted the printjob).

BUT ... the 4 testsetups are logged in with the same windows user account so I can't filter on submitter.

 

Any ideas on how to implement this ?

 

I attached the 2 vi's:

TS Print Report.vi is the vi that opens the XML report and sends it to the printer.

printertest.vi checks the local printerserver and reads the default printqueue and PrintJobInfoCollection.

 

The VI's are in LabVIEW 2010

 

Thanks for our help.

 

 

printertest.vi

TS Print Report.vi

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.