Assembly: C1.Web.C1WebReport.2 (in C1.Web.C1WebReport.2.dll)
Syntax
C# |
---|
public void ShowPDF() |
Visual Basic (Declaration) |
---|
Public Sub ShowPDF |
Remarks
Pdf is a rich format, often more convenient than straight Html for rendering complex documents such as reports. Pdf is compressed by default, and it can be saved and annotated by users who have Adobe's Acrobat Viewer. Pdf documents are usually more faithful than Html because they allow you to specify page dimensions and orientation, and the format offers more flexibility than Html in rendering graphic elements such as lines.
Saving Pdf files is easier than saving Html files, because Pdf is a stand-alone format, and images in Html are always represented by links to external files.
Most browsers are capable of displaying Pdf files via plug-ins, which Adobe offers for free with the basic version of its Acrobat Viewer (see www.adobe.com for details).
Pdf reports are also cached by C1WebReport (see the Cache property), so once they are generated, subsequent requests can be fulfilled almost instantly.
Examples
The following code shows a PDF version of the report when a button is clicked:
PrivateSub PdfButton1_Click(sender AsObject, e As System.EventArgs) ' show PDF version of the report on the client _c1wr.ShowPDF() EndSub |
privatevoid PdfButton1_Click(object sender, System.EventArgs e) { // show PDF version of the report on the client _c1wr.ShowPDF(); } |