Thank you, Gary! Sorry, no, it did not work either. It must have something to do with sorting. Because I made a report with no breaks or formatting and the code did work. Also me running Rbase on a Mac instead of a PC could be an issue. Maybe I should ask RBTI for permission to install Rbase 9 on a PC too, just to find out. Or if there is a demo version of Rbase 9 I could download. Regards Christian
1 maj 2010 kl. 03.55 skrev Gary Wendike: > 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 >

