Dennis_Treacy
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
I find PageSetupDialog1.Execute does not change the value of RvNDRWriter1.Orientation
try setting RvNDRWriter1.Orientation to Default ....
ASKER
Thanks but did not work. Also I tried RvNDRWriter1.ShowPrinterSe tupDialog rather than TPageSetupDialog as recommensded by Rave ie
RvNDRWriter1.Orientation := poDefault;
if RvNDRWriter1.ShowPrinterSe tupDialog then
begin
// orientation is still recorded as poDefault
end;
RvNDRWriter1.Orientation := poDefault;
if RvNDRWriter1.ShowPrinterSe
begin
// orientation is still recorded as poDefault
end;
Rave documentation also says that using printersetupdialog you must ignore the report default settings so
RvNDRWriter1.Orientation := poDefault;
if RvNDRWriter1.ShowPrinterSe tupDialog then
begin
RvNDRWriter1.IgnoreFileSet tings := true;
...
RvNDRWriter1.Orientation := poDefault;
if RvNDRWriter1.ShowPrinterSe
begin
RvNDRWriter1.IgnoreFileSet
...
ASKER
There is no method RvNDRWriter1.IgnoreFileSet tings. There is RvRenderPrinter1.IgnoreFil eSettings.
Putting this immediately after the 'begin' does not help.According to Rave there is a RvRenderPrinter1.IShowPrin terSetupDi alog but does not appear on code completion so did not try it.
Putting this immediately after the 'begin' does not help.According to Rave there is a RvRenderPrinter1.IShowPrin
never used Rave much ....
can RvNDRWriter1.IgnoreRPTF be used ?
can RvNDRWriter1.IgnoreRPTF be used ?
ASKER
No, I tried that one.
How about using RvRenderPrinter
if RvRenderPrinter1.ShowPrint erSetupDia log then begin
RvRenderPrinter1.IgnoreFil eSettings := True;
RvRenderPrinter1.Execute;
or if RvNDRWriter1.ShowPrintDial og then begin
RvNDRWriter1.Execute;
end; { if }
www.nevrona.com/files/ravedevguide5.pdf
if RvRenderPrinter1.ShowPrint
RvRenderPrinter1.IgnoreFil
RvRenderPrinter1.Execute;
or if RvNDRWriter1.ShowPrintDial
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...
ASKER
I have had a good look at the guide.
I saw reference in the Rave docs to RvRenderPrint1.ShowPrinter SetupDialo g 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.
I saw reference in the Rave docs to RvRenderPrint1.ShowPrinter
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.