Discussion:
Example to print NDR file
(too old to reply)
Sandeep Chandra
2008-07-01 21:32:14 UTC
Permalink
How can I print a ndr file saved on the disk? I couldn't find any
example on the web or on Rave's website.

Regards

Sandeep
--
http://www.fjfresh.com
support
2008-07-01 21:38:43 UTC
Permalink
Hi Sandeep,

Thank you for using Rave Reports. Please provide your Rave product and
version number on all support questions.
How can I print a ndr file saved on the disk? I couldn't find any example
on the web or on Rave's website.
You did not give your version, but have you checked the RaveDevGuide
documentation (CHM, HLP or PDF)? It usually is under the Rave folder, but
the bundled versions can vary since they follow a CodeGear Delphi structure
pattern. If you have that file, then look under the FAQ section for "Tips
and Tricks" and you will find several render examples. Specifically, I would
have you look at "Render NDR with NO preview".
--
Tech Support
Nevrona Designs
***@nevrona.com
Sandeep Chandra
2008-07-01 21:59:00 UTC
Permalink
Thanks for the quick response.

I am using 6.5.2 version of Rave Reports.

I have had a look at the Tips & tricks section but I still can't figure
out how to print a saved NDR file to a specific printer(might not be the
default printer).

Sandeep
support
2008-07-01 22:24:08 UTC
Permalink
Hi Sandeep,
Post by Sandeep Chandra
I am using 6.5.2 version of Rave Reports.
Thank you for using Rave Reports and providing the version number (BE 6.5.2)
Post by Sandeep Chandra
I have had a look at the Tips & tricks section but I still can't figure
out how to print a saved NDR file to a specific printer(might not be the
default printer).
Same document (not our web site) - RaveDevGuide - FAQ section under
"Printer" you will find "Printer Changing". Combine that with the "Render
NDR to Preview" and you will almost be there. Just change the
RvSystem1.DefaultDest to rdPrinter.

The examples are showing the code base method - if you are sending a visual
report, then I would do a RvProject1.ExecuteReport('NameOfReport') instead
of the RvSystem1.Execute.
--
Tech Support
Nevrona Designs
***@nevrona.com
Sandeep Chandra
2008-07-01 23:10:32 UTC
Permalink
According to the documentation (Render NDR to Preview) following code
should show my saved NDR file

rav.DefaultDest := rdPreview;
rav.SystemFiler.FileName := 'MySavedFile.ndr';
rav.Execute;

but what I get is a blank page instead of my saved report. If I then
load the ndr file from the preview I can see the report.

Regards

Sandeep
--
http://www.fjfresh.com
support
2008-07-02 11:18:33 UTC
Permalink
Hi,
Post by Sandeep Chandra
According to the documentation (Render NDR to Preview) following code
should show my saved NDR file
rav.DefaultDest := rdPreview;
rav.SystemFiler.FileName := 'MySavedFile.ndr';
rav.Execute;
but what I get is a blank page instead of my saved report. If I then load
the ndr file from the preview I can see the report.
I believe you should be using RvSystem1.DefaultDest etc.

BTW, Please ignore my comment in an earlier message about RvProject - I was
jumping the gun and was answering a question that you had not asked.
--
Tech Support
Nevrona Designs
***@nevrona.com
Sandeep Chandra
2008-07-02 21:04:17 UTC
Permalink
Post by support
Post by Sandeep Chandra
According to the documentation (Render NDR to Preview) following code
should show my saved NDR file
rav.DefaultDest := rdPreview;
rav.SystemFiler.FileName := 'MySavedFile.ndr';
rav.Execute;
but what I get is a blank page instead of my saved report. If I then
load the ndr file from the preview I can see the report.
I believe you should be using RvSystem1.DefaultDest etc.
I am not quite sure what you mean by this. The code above is as I was
trying in my app so don't know what you are trying to say.

Sandeep
--
http://www.fjfresh.com
Loading...