Link to home
Start Free TrialLog in
Avatar of Dennis_Treacy
Dennis_TreacyFlag for Australia

asked on

Rave reports - setting page orientation using TPageSetupDialg

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

Avatar of senad
senad
Flag of Slovenia image

try setting RvNDRWriter1.Orientation to Default ....
Avatar of Dennis_Treacy

ASKER

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;
Avatar of Ferruccio Accalai
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;
  ...  
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.
never used Rave much ....
can RvNDRWriter1.IgnoreRPTF be used ?
No, I tried that one.
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
sorry,that was just a quickie from that developers guide ....they have various examples over there...
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.
ASKER CERTIFIED SOLUTION
Avatar of Dennis_Treacy
Dennis_Treacy
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial