[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Rave reports - setting page orientation using TPageSetupDialg

Posted on 2009-12-28
10
Medium Priority
?
1,303 Views
Last Modified: 2012-05-08
Using Rave Reports I want to change page orientation as recorded by RvNDRWriter1.Orientation using TPageSetupDialog.

I find PageSetupDialog1.Execute does not change the value of RvNDRWriter1.Orientation

0
Comment
Question by:Dennis_Treacy
  • 5
  • 4
10 Comments
 
LVL 22

Expert Comment

by:senad
ID: 26130371
try setting RvNDRWriter1.Orientation to Default ....
0
 

Author Comment

by:Dennis_Treacy
ID: 26130402
Thanks but did not work. Also I tried RvNDRWriter1.ShowPrinterSetupDialog rather than TPageSetupDialog as recommensded by Rave ie

  RvNDRWriter1.Orientation := poDefault;
  if RvNDRWriter1.ShowPrinterSetupDialog then
  begin
// orientation is still recorded as poDefault
  end;
0
 
LVL 23

Expert Comment

by:Ferruccio Accalai
ID: 26130411
Rave documentation also says that using printersetupdialog you must ignore the report default settings so

RvNDRWriter1.Orientation := poDefault;
if RvNDRWriter1.ShowPrinterSetupDialog then
begin
   RvNDRWriter1.IgnoreFileSettings := true;
  ...  
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:Dennis_Treacy
ID: 26130475
There is no method RvNDRWriter1.IgnoreFileSettings. There is RvRenderPrinter1.IgnoreFileSettings.
Putting this immediately after the 'begin' does not help.According to Rave there is a RvRenderPrinter1.IShowPrinterSetupDialog but does not appear on code completion so did not try it.
0
 
LVL 22

Expert Comment

by:senad
ID: 26130591
never used Rave much ....
can RvNDRWriter1.IgnoreRPTF be used ?
0
 

Author Comment

by:Dennis_Treacy
ID: 26130613
No, I tried that one.
0
 
LVL 22

Expert Comment

by:senad
ID: 26130771
How about using RvRenderPrinter

if RvRenderPrinter1.ShowPrinterSetupDialog then begin
RvRenderPrinter1.IgnoreFileSettings := True;
RvRenderPrinter1.Execute;

or if RvNDRWriter1.ShowPrintDialog then begin
RvNDRWriter1.Execute;
end; { if }

www.nevrona.com/files/ravedevguide5.pdf
0
 
LVL 22

Expert Comment

by:senad
ID: 26130781
sorry,that was just a quickie from that developers guide ....they have various examples over there...
0
 

Author Comment

by:Dennis_Treacy
ID: 26130813
I have had a good look at the guide.

I saw reference in the Rave docs to RvRenderPrint1.ShowPrinterSetupDialog but ShowPrinterSetupDialog did not appear as a method of RvRenderPrint1 on code completion.

I tried RvNDRWriter1.Execute but this I presume does the printing. I get an execution error because, I think, if am using pagesetup prior to doing the print preparation -  ie I am not ready to print at this stage.
0
 

Accepted Solution

by:
Dennis_Treacy earned 0 total points
ID: 26135890
I found this works

Put RPdevice in uses clause.

if RpDev.PrinterSetupDialog then
   RvNDRWriter1.Orientation := RpDev.Orientation;


0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question