Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Save and load .raf arquive

Hello, I'm using version 18.0 build 369 of report builder, and I'm testing the possibility to save a report and then load it again.


I am generating a .raf file the file is being generated normally and I am able to view it through ppArchiveReader.
However if I change the device from ppArchiveReader to printer instead of screen, ie I do not want to view the report, just print it, I get an error message 'On screen', it is a valid option for viewing but not for printing "

How should I proceed, what configuration should I be performing?

How I am doing:
1) Save file
  ppReport.AllowPrintToFile: = true;
  ppReport.AllowPrintToArchive: = true;
  ppReport.DeviceType: = 'ArchiveFile';
  ppReport.ArchiveFileName: = 'c: \ test.raf';
  ppReport.PrintReport;

2) Load file
ppArchiveReader1.ArchiveFileName: = 'c: \ test.raf';
ppArchiveReader1.DeviceType: = 'Printer';
ppArchiveReader1.Print;

Error:
On-screen 'option is a valid option for viewing, but not for printing

Comments

  • Please, anyone has any suggestions as to the problem.
  • Hi Jose,

    This is not a known issue and in my quick testing with code almost identical to yours I was able to print an archive successfully.

    1. Try printing from the previewer and see if you get the same error.

    2. Be sure you have a printer installed on your machine.

    3. Try downloading a copy of the latest version of ReportBuilder (trial) and test with that.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Hi Nico, will download the trial version 19 and test with it.
    Tanks
  • Hi Nico, I would like to send you the generated file so I could test it.
    Here even when I try to print from the preview the error message occurs
  • Solution found. At the time of generating the file PrinterSetup.PrinterName can not be "Screen"
Sign In or Register to comment.