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
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
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Tanks
Here even when I try to print from the preview the error message occurs