Code: Select all
RichVReportHelper.RichView.LoadRTF(filename);
Printer.Orientation := RichVReportHelper.RichView.DocParameters.Orientation;
Code: Select all
RichVReportHelper.RichView.LoadRTF(filename);
Printer.Orientation := RichVReportHelper.RichView.DocParameters.Orientation;
Code: Select all
if rv.DocParameters.Width>rv.DocParameters.Height then
if rv.DocParameters.Orientation=poPortrait then
Printer.Orientation := poLandscape
else
Printer.Orientation := poPortrait
else
Printer.Orientation := rv.DocParameters.Orientation;
Code: Select all
if rv.Width>rv.Height then
Code: Select all
RVRHMain.RichView.RTFReadProperties.ReadDocParameters := True;
RVRHMain.RichView.LoadRTF(dateiname);
if RVRHMain.RichView.Width > RVRHMain.RichView.Height then
begin
if RVRHMain.RichView.DocParameters.Orientation = poPortrait then
Printer.Orientation := poLandscape
else
Printer.Orientation := poPortrait;
end else
Printer.Orientation := RVRHMain.RichView.DocParameters.Orientation;
Code: Select all
if RVRHMain.RichView.DocParameters.PageWidth > RVRHMain.RichView.DocParameters.PageHeight then
Code: Select all
if RVRHMain.RichView.Width > RVRHMain.RichView.Height then