[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

[sqr-users] Re: Generate PDF from SPF file inside SQR program




Nabil,

That's right, you need to close the SPF file before you convert it to PDF.
I'm not aware of any command that will just close an SPF file, but when you
open a new SPF file the prior SPF file gets closed.  Here's a procedure I
use that works:

begin-procedure create_pdf_file
  display 'making pdf file'

  new-report 'junk'
  let $command = 'sqrp ' || $sqr-report || ' -PRINTER:PD'
  call system using $command #statuscode

end-procedure ! create_pdf_file

Rebecca

>Date: Fri, 9 Jul 2004 11:29:47 +0200 (CEST)
>From: Nabil <cybernaboo@yahoo.fr>
>Subject: [sqr-users] Generate PDF from SPF file inside SQR program
>To: Sqr <sqr-users@sqrug.org>
>Message-ID: <20040709092947.92646.qmail@web60708.mail.yahoo.com>
>Content-Type: text/plain; charset=iso-8859-1
>
>Hi,
>
>I'd like to generate (using "call system using sqrp") PDF from SPF file
inside my SQR program. Everything seems ok >but when I try to open the PDF
file, I got an error message "file damaged".
>
>If I launch manually the "sqrp" command after the sqr program, i can read
the PDF without problem.
>
>Maybe I got to "close" the spf file before using "sqrp' command or
anything else .
>
>Any idea ?
>
>Nabil
>
>
>
>---------------------------------
>Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
>Créez votre Yahoo! Mail
>
>Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !




CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, 
is for the sole use of the intended recipient(s) and may contain confidential
and privileged information or otherwise protected by law.  Any unauthorized
review, use, disclosure or distribution is prohibited.  If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies of the original message.

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users