ComponentOne VSView Reporting Edition
Visual Basic Samples

Sample

Description

Chart

Add dynamic charts to your reports. The sample creates a report similar to NorthWind's "Sales By Category" report. To run this sample, you should have Microsoft Office installed. The sample uses the OnPrint event to create the chart and assign its image to the Picture property of a field. This sample uses VSPrinter and VSReport controls.

CreateReport

Create and customize reports using code. VSView Reporting Edition includes a powerful designer that allows you to create report definitions. But you can also create and customize reports using the object model. (You could even write your own designer!)This sample creates a report using code, and allows the user to add or remove grouping. This sample uses the VSPrinter and VSReport controls.

CustomData

Create custom data sources. VSView Reporting Edition makes it easy for you to render reports based on data that is stored in databases (SQL Server, Microsoft Access, etc). But you can also create your own data sources and use them in your reports. This sample uses. the VSPrinter and VSReport controls

DAOData

Use data from DAO databases in your reports. This sample uses the VSPrinter and VSReport control.

NewPage

Create separator pages. This sample uses the VSPrinter object underlying VSReport to create reports where separator pages are sent to different printer bins. This sample uses the VSPrinter and VSReport controls.

NorthWind

This sample shows how you can determine which reports are available in a report definition, load them into the control, render and export the report. This sample uses the VSPrinter and VSReport controls.

Orient

Render reports in Portrait and Landscape orientation. This sample uses the VSPDF8, VSReport, and VSPrinter controls.

Outline

Create dynamic outline trees for reports. This sample shows how you can create outline trees for your reports (similar to the PDF outline trees). The sample uses "tags" created by VSReport8 and embedded in the report to create the outlines. This sample uses the VSReport and VSPrinter controls.

RTF

Export reports to RTF, PDF, and HTML. The RenderToFile method in VSReport8 supports the RTF format along with several others, including PDF and HTML. This sample uses the VSPrinter and VSReport controls

TimeOut

Change the Time Out connection parameter. This sample shows one way to change the time-out value, using code. Note that you can also specify the time-out value in the connection string (for example, "Time Out=300"). This sample uses the VsReport and VSPrinter controls.

Unbound

Create reports that do not rely on external data. The sample uses a report where all information is contained in the report definition itself and in the code. This sample uses the VSReport and VsPrinter controls.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback