Jeff,
of course it would be easier, but i have become aware of several sites that dont do that
and print straight out.
If the printer screws up 2 bad, rerun the report.

Is this common practice ?
I had assumed most people would use mode 3 and write to the HOLD file, so that you could reprint those eod/eom reports or cheque runs if required.

I suppose the 'advantage' is the sites dont have any spooler management software to monitor.

So what do you do if they now want any those reports to go to excel ?
The quickest thing would be to pass the spl file (on windows) to the text import wizard. The shd file has a lot of useful info re filtering and would be a bonus but reading it doesnt look easy.

jak
----- Original Message ----- From: "Jeff Schasny" <[EMAIL PROTECTED]>
To: <u2-users@listserver.u2ug.org>
Sent: Saturday, June 10, 2006 12:32 AM
Subject: RE: [U2] SETPTR MODE 1


Would it not be easier to just setptr mode 3 and read the resulting item
from &HOLD&?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Brian Leach
Sent: Friday, June 09, 2006 3:01 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] SETPTR MODE 1


Chris,

The shd files are not meant to be readable. To get the printer and job
information you really need to go through the Windows APIs - but it's not as
bad as that sounds <grin>.

You can get printer and job information through the WMI library (search on
MSDN for WMI Printer). WMI is a COM based model, which means you can call it
from VBScript or a simple executable in VB or Delphi. VBScript you can
execute from UniVerse using a verb pointer to the cscript command (copy the
pointer for DOS and change cmd.exe to cscript.exe), or a simple executable
can be made into a verb pointer directly.

Both will allow you to capture output.

(IF you haven't met VBScript before, I have an article on the U2UG knowledge
base on using VBScript with UniObjects. VBScript is very useful.)

I have done something similar for interfacing UniVerse to the Windows Fax
Manager.

If you need some help getting started, email me off list.

Regards,

Brian

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris Day
Sent: 09 June 2006 05:25
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] SETPTR MODE 1

Hi John,

Good that you have found where the print files are located on
the system.

Unfortunately, I have not tried to read the details contained
in the .shd file at all, but someone else on the list may be
able to assist with this.

Chris Day
Technical Pre-Sales Specialist
Meier Business Systems
Melbourne * Sydney * Kuala Lumpur * Singapore

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Kent
Sent: Friday, 9 June 2006 12:31 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] SETPTR MODE 1

Chris,
    aha found it.

But how does one read the shd file ?
This look like where the job description etc SPOOL -LIST uses
on windows So i am guessing there is a way to read this and
define the data delimiters

jak
----- Original Message -----
From: "Chris Day" <[EMAIL PROTECTED]>
To: <u2-users@listserver.u2ug.org>
Sent: Friday, June 09, 2006 11:38 AM
Subject: RE: [U2] SETPTR MODE 1


> Hi John,
>
> On windows if you use the HOLD keyword on the SETPTR statement, the
> resulting print job will end up in the spooler directory of the
system.
>
> On my XP based system this directory is
>
> WINDOWS\system32\spool\PRINTERS
>
> There will be two files, one being a control file and the
other being
> the actual print job.
>
> Hope that this helps
>
> Chris Day
> Technical Pre-Sales Specialist
> Meier Business Systems
> Melbourne * Sydney * Kuala Lumpur * Singapore
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of John Kent
> Sent: Friday, 9 June 2006 9:52 AM
> To: U2Users
> Subject: [U2] SETPTR MODE 1
>
> I have been looking at Universe in PICK flavour on Windows.
>
> Does anyone know where the output goes with setptr mode 1 and HOLD.
> (I have always used mode 3)
>
> Is it accessible in basic with a file read.
>
> where is the SPOOL - LIST job description data kept and can i access
> this in
> basic
>
> It seems like there is a gui front end for spooler management under
unix
> but
> not in windows
> I would like to be able to come up with something that works with
either
> if
> thats possible.
>
> jak
> -------
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
>


CAUTION: This email and any attachments are confidential, may
be privileged, and are intended for use solely by the
addressee. The confidentiality and/or privilege in this email
is not waived, lost or destroyed if it has been transmitted
to you in error. If you receive this email in error, please
notify MBS by reply email immediately, delete the email and
destroy any printed copies. You must not disclose,
disseminate, distribute, reproduce or use the information
contained in this email if you are not the intended
recipient. The content and opinions contained in this email
are those of the individual sender and may not necessarily
reflect the views and opinions of MBS. MBS does not guarantee
that this email is free from viruses, errors, interception or
interference. Use of this email and any attachments is at the
sole risk of the user. MBS does not accept any liability for
any loss or damage to your computer system or network
(including any consequential damage) which may occ!
ur directly or indirectly from the use of this email.
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.2/357 - Release Date: 6/6/2006

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.2/357 - Release Date: 6/6/2006
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 8/06/2006
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to