Please be advised that this ComponentOne software tool is accompanied by various sample projects and/or demos which may make use of other development tools included with the ComponentOne Studios.
Note: The ComponentOne Samples are also available at http://helpcentral.componentone.com/Samples.aspx.
Click one of the following links to view a list of Preview Classic for WinForms samples:
Sample |
Description |
Integrated |
This large, integrated sample shows various Preview Classic for WinForms features. It contains a single large MDI application, with individual MDI applets showing different features of the Preview Classic for WinForms package. The applets are grouped into those using just the C1PrintPreview, and those using the C1PrintDocument to generate documents shown in the preview. This sample uses the C1PrintPreview, PreviewToolBarButton, and C1PrintDocument controls. |
PrintPreviewC1Chart |
This sample shows how to add a ComponentOne Chart for WinForms control to a C1PrintDocument. It loads a chart, and then renders that chart as part of a reflowable C1PrintDocument. Note: This sample requires C1.Win.C1Chart and C1.Win.C1Chart3D components. They must be present and installed for this sample to run. This sample uses the C1Chart, C1Chart3D, C1PrintPreview, and PreviewToolBarButton controls. |
PrintPreviewC1FlexGrid |
This sample shows how to print/preview a ComponentOne FlexGrid for WinForms grid. It presents various ways to print a C1FlexGrid, both via its internal mechanism and by incorporating it into a C1PrintDocument. Note 1: Two of the sub-samples require the Nwind.mdb database (C:\Program Files\ComponentOne Studio.NET 2.0\Common\Nwind.mdb is the default location but it can be changed in the samples' sources.) Note 2: This sample requires the C1FlexGrid control. It must be present and installed for this sample to run. This sample uses the C1FlexGrid, C1PrintPreview, C1PrintDocument, and PreviewToolBarButton controls. |
PrintPreviewC1TrueDBGrid |
This sample shows how to print/preview a ComponentOne TrueDBGrid for WinForms control. It Presents various ways to print a C1TrueDBGrid – via the grid's PrintInfo (which uses Preview Classic for WinForms internally) or by incorporating the grid into an external C1PrintDocument. Note 1: Some sub-samples require the Nwind.mdb database (C:\ProgramFiles\ComponentOne Studio.NET 2.0\Common\Nwind.mdb is the default location, but it can be changed in the samples' sources.) Note 2: This sample requires the C1TrueDBGrid control. It must be present and installed for this sample to run. This sample uses the C1TrueDBGrid, C1PrintPreview, and C1PrintDocument controls. |
PrintPreviewForms |
This sample shows different ways to incorporate an arbitrary .NET control or a whole form into a reflowable C1PrintDocument, and preview that document. Various ways to print a MS DataGrid are shown (including how to print a long grid with page breaks). Applets using the DataGrid require the Nwind.mdb (C:\Program Files\ComponentOne Studio.NET 2.0\Common\Nwind.mdb is the default location but it can be changed in the samples' sources). This sample uses the C1PrintPreview and PreviewToolBarButton controls. |
SimpleDocument |
This sample creates a simple document using C1PrintDocument. Shows how to create and preview a very simple document using C1PrintDocument and C1PrintPreview. Allows easily changing the size of the resulting documents by repeating the content of the document an arbitrary number of times. Shows how to change page headers on the fly. This sample uses the C1PrintPreview, PreviewToolBarButton, and C1PrintDocument controls. |
VSPrinterEmulator |
This sample contains a user control (C1VSPrinter, written in VB.NET, with full source code) which uses C1PrintDocument and C1PrintPreview to emulate the functionality of the ActiveX VSPrinter control. A test using C1VSPrinter shows how to make a calendar, print complex tables, build document outlines, and more. This sample uses the C1PrintPreview, PreviewToolBarButton, C1VSPrinter, and C1PrintDocument controls. |
Sample |
Description |
C1DView |
This sample shows how to build a simple multi-window viewer for files generated by Preview Classic for WinForms. By default those files have an extension .c1d and can be produced when you click the Save button in the C1PrintPreview control with a loaded/generated document. This sample uses the C1PreviewToolBar, C1PreviewStatusBar, PreviewToolBarButton, and C1PrintDocument controls |
CenterImageInTableCell |
This very simple sample shows how to center an image in a C1PrintDocument table. This sample uses the C1PrintPreview, C1PrintDocument, and PreviewToolBarButton controls. |
CustomExportForms |
This sample demonstrates how to replace default built-in dialogs of export parameters with custom forms, which are created by the developer. |
Hyperlinks |
This sample demonstrates how to use the hyperlinks in C1PrintDocument the sample also shows how to create metafiles with hyperlinks. |
MSDataGrid |
This sample shows how to implement C1.C1PrintDocument.ControlPrinters.IC1ControlPrinter and C1.C1PrintDocument.ControlPrinters.IC1ControlPrintable interfaces to print a multi-page control such as the standard .NET DataGrid. The class C1PrintDataGrid implemented in the sample can be used as is to include DataGrid controls into C1PrintDocument. This sample uses the C1PrintDocument, C1PrintPreview, and PreviewToolBarButton controls. |
MultiplePageSettings |
This sample shows how to use the NewPageSetup event of C1PrintDocument to change page settings (such as page orientation and margins) for different pages of the document being generated. |
PageHeader |
This sample demonstrates how to set up multi-part page headers in C1PrintDocument. This sample uses a C1PrintDocument.RenderTable to create a multi-part page header and footer, with separate parts aligned to the left, center and right. This sample also shows how to use C1PrintDocument.RenderDirect methods to render text and graphics to arbitrary areas of the current page. This sample uses the C1PrintPreview, PreviewToolBarButton, and C1PrintDocument controls. |
PreviewVsView |
This sample shows how documents created with the ActiveX components, VSView/VSPrinter, can be loaded into the C1PrintPreview control, previewed, and printed. The documents can also be saved as .C1D. The sample includes the vsprint8.ocx (necessary to load the VSPrinter documents), and a number of sample documents (files with the extension .VP). The sample also demonstrates how the functionality of a built-in C1PrintPreview toolbar button (in this case, File Open) can be extended (in this example, it is enhanced to be able to load .VP documents). |
RichTextViewer |
This sample shows how to implement a file viewer for RTF and plain text files using C1PrintPreview and C1PrintDocument with very little code. The sample also shows how to add custom toolbar buttons with custom images to the built-in C1PrintPreview toolbar. This sample uses the C1PrintPreview, C1PrintDocument, and PreviewToolBarButton controls. |
|