Rave Report PDF and Intraweb

发布时间 : 星期日 文章Rave Report PDF and Intraweb更新完毕开始阅读

still pushed) some fields from the TreeView to the narrow white band of the

DataBand

the Rave Designer looks like this

To check that everything is correctly setup, we will preview the result:

type F9 to preview the result

an \

select \

the preview is displayed

And now the more important step before we leave the report, we must save this report layout in a .RAV file:

select \

a \

current Delphi project, like the path you used 3 weeks ago for another Rave Designer project

navigate to our Delphi folder and save the report, as, for instance,

R_EMPLOYEE.RAV

At this stage you can close the Rave Designer. Note however that this report is named \of theTreeView), as this name will be used later to build the .PDF file.

2.3 - PDF output report

Rave report has many possible outputs:

the printer, obviously ? a .PDF file ? a .RTF file

? and some other like .HTML, internal Rave format (layout+data) etc

?

To produce a .PDF report, the steps are the following:

go back to the Delphi project

drop a tRvSystem component on the Form.

Then

to produce a .PDF report file, in its DefaultDest property select rdFile ? to avoid the display of the \SystemSetups, click the + expand icon, and togglessAlowSetup to False

?

select RvProject1

select its Engine property and connect it to RvSystem1

? select its ProjectFile property, click the ellipsis ... and select the R_EMPLOYEE.RAV file

?

drop a tRvRenderPDF component, and toggle Active to True (this is the

default anyway)

drop a tButton on the Form, create its OnClick event, and type the following

code:

procedure TForm1.output_pdf_Click(Sender: TObject); begin with RvSystem1 do begin DoNativeOutput:= False; RenderObject:= RvRenderPDF1; OutputFileName:= 'my_report.pdf'; end; // with RvSystem1 RvProject1.Execute; end; // output_pdf_Click

compile, run, click \

the MY_REPORT.PDF is saved in the current directory (where the .EXE is)

click on the MY_REPORT.PDF file

Acrobat is loaded, and its content displayed:

3 - Intraweb Rave Report

3.1 - The Intraweb Project

Let's setup the basic Intraweb site. We will use a standalone project, which avoids the IIS configuration steps. Therefore:

create a new folder

start a new Intraweb project by selecting \| New | Other | Delphi Projects | Intraweb | Intraweb Application\

the Intraweb \

keep its default values (\Application\and \User Session\and in the \ save this project compile and run it

the project's Server is displayed type F9

the browser is displayed with an empty page

The firewall will eventually block the loading of the browser, but accepting this new page will unlock this

联系合同范文客服:xxxxx#qq.com(#替换为@)