[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: SQR Printing to Other Than Default Printer
- Subject: Re: SQR Printing to Other Than Default Printer
- From: Juan Enrique Muñoz <enrique_munoz@KAIZEN.COM.MX>
- Date: Wed, 1 Mar 2000 12:13:08 -0600
You can create a batch file (example: report.bat), where this file contains
the environment variable SQRDIR and the command sqrp. In VB application you
can include the path to run the batch file
-----Mensaje original-----
De: Paul Finnegan <Paul.Finnegan@SAVILLEMAIL.COM>
Para: SQR-USERS@list.iex.net <SQR-USERS@list.iex.net>
Fecha: Miércoles, 01 de Marzo de 2000 12:12 p.m.
Asunto: Re: SQR Printing to Other Than Default Printer
>I am assuming that you are using a Windows platform, due to your mention of
VB.
>and DOS.
>The error message comes from the SQR compiler, so it sounds as if it is an
SQR
>error and not your script.
>Do you use an SQRDIR variable in you code? Or maybe your compiler setup may
need
>to be looked at to check for a default directory.
>
>HTH
>
>Paul
>
>
>
>
>Milancie.Adams-1@kmail.ksc.nasa.gov on 01/03/2000 12:22:00 PM
>
>Please respond to sqr-users@list.iex.net
>
>
>
> To: SQR-USERS@list.iex.net
>
> cc: (bcc: Paul Finnegan/Net)
>
>
>
> Subject: SQR Printing to Other Than Default Printer
>
>
>
>
>
>
>
>
>We have a need to alter the printer to which a sqr report will be printed
to
>something other than the default printer without user manual intervention.
>We have several printers at various locations and need to print reports on
>these printers at various intervals.
>
>Our solution that we tried
>
>Was to have a Visual Basic Program to control the printing of these reports
>by first altering the default printer by launching a Visual Basic Script.
>This part works but then when we try to execute the following command after
>this in VB to print the sqr report to the printer
>
>CommandStr = "c:\sqr\ora\binw\sqrwp
p:\Milancie\testingprinting\qa_note.spf"
>RetVal = Shell(CommandStr)
>
>
>We qet the following error
>
>SQR 14 SQRDIR not defined
>
>Has anyone successfully done something similar and have a solution you
>willing to share?
>
>Thanks
>Milancie