Try using &vfakt_underlag instead of .vfakt_underlag to define the filename.

 

Gary

 

  _____  

From: [email protected] [mailto:[email protected]] On Behalf Of Harry Two
Fingers
Sent: Friday, April 30, 2010 5:23 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Printing to PDF

 

I have a problem with this piece of code. It works fine in Rbase 7.6.
 
SET VAR vfakt_underlag TEXT = ('Fakturaunderlag'+'1012'+'.pdf')
PRINT fakturaunderlag WHERE kund < 9999 OPTION PDF|FILENAME .vfakt_underlag
RETURN
 
It doesn't complete the pdf file. If I try to open the pdf file, Acrobat
says
the file is broken or used by another program.
The latter is true because the rbase eep file hangs.
 
If print OPTION is Screen, Printer, BMP, TXT,RTF and XLS the code works.
 
With TIFF and PDF the code "hangs".
 
I am running RBase 9 on a Windows(XP) Bootcamp partition, on a Mac Pro.
The report I use (fakturaunderlag) has two breaks in it, (customer and
transaction).
 
So for the time being the workaroundcode I use is: PRINT fakturaunderlag
WHERE kund < 9999.
 
But I sure would like to have it the more automated way above.
 
Regards
Christian
 

Reply via email to