![]()
![]()
After you have received and installed the unregistered package, containing the files as shown at ListPrint.ZIP and explained at the table below, you can use the components as FREEWARE to create your own personal projects (see also the help file coming with the examples as well as the documentation "ListPrinter.HTM", coming with the FREEWARE). The following examples, containing the compiled sample application as well as the source code of the sample application, will guide you how to work with the components:
| Explanation | Example Application |
|---|---|
| TDBGridPrinter | Link any TDBGrid to the TDBGridPrinter and the content of the DBGrid data base will be previewed and printed as table in WYSIWYG |
| TStringGridPrinter | Link any TStringGrid to the TStringGridPrinter and the content of the StringGrid will be previewed and printed as table in WYSIWYG |
| TListViewPrinter | Link any TListView to the TListViewPrinter and the content of the TListView will be previewed and printed as table in WYSIWYG (incl. database action) |
| TRichEditPrinter | Link any TRichEdit to the TRichEditPrinter and the content of the TRichEdit will be previewed and printed in WYSIWYG |
| TMemoPrinter | Link any TMemo to the TMemoPrinter and the content of the TMemo will be previewed and printed in WYSIWYG |
| TTextReportPrinter | Free design of a report having static text created by "Write", "WriteLine", "WriteTableLine", including Font control, as well as dynamic tables and bitmap |
![]()
You can alter the source code received with the registered package (shown at the table below) according to your requirements in the same way, as you can do this with each standard Delphi VCL. For individual fees of registered version see Source Code (see hint A) and B).
| TListPrinter | Complete set of all source code for TListPrinter, including source code for help file |
|
| TDBGridPrinter | Link any TDBGrid to the TDBGridPrinter and the content of the DBGrid data base will be previewed and printed as table in WYSIWYG | GridPack.ZIP B) |
| TStringGridPrinter | Link any TStringGrid to the TStringGridPrinter and the content of the StringGrid will be previewed and printed as table in WYSIWYG | |
| TListViewPrinter | Link any TListView to the TListViewPrinter and the content of the TListView will be previewed and printed as table in WYSIWYG | ViewPack.ZIP B) |
| TRichEditPrinter | Link any TRichEdit to the TRichEditPrinter and the content of the TRichEdit will be previewed and printed in WYSIWYG | TextPack.ZIP B) |
| TMemoPrinter | Link any TMemo to the TMemoPrinter and the content of the TMemo will be previewed and printed in WYSIWYG | |
| TTextReportPrinter | Free design of a report having static text created by "Write", "WriteLine",, including Font control, as well as dynamic tables and bitmap. |
You will also receive the source code for the Help file, like ListPrinter.HPJ and ListPrinter.RTF (created by Microsoft Word 97 and Microsoft Help WorkShop 4.0) together with the bitmaps.
Hints:
A) ListPrinter.ZIP will contain the full source code for any of the
ListPrinter modules (click the hyperlink to get the file list).
B) This modules will contain the source code needed to alter the module
itself, not the source code for the kernel, common used for all modules (click the
hyperlinks to see the different).
![]()
In general not, if you are a skilled user of Delphi 4 or 5 and you have your own
methods of installing packages.
If you need only a temporary installation, to see how ListPrinter fulfills your needs and
expectations, the following procedure may be a recommendation for you:
Create a directory "C:\CSD" and uncompress the archive "ListPrinter.ZIP" (or ListPrint4.ZIP respt. ListPrint5.ZIP for the FREEWARE) with the "including directories" define from this position. The subdirectories, as shown at ListPrint.Zip will be created while extracting. Add a path "C:\CSD" to the Environment Option as shown at picture 1.

Picture 1
Open the file "ListPrinter.DPK" (ListPrintX.DPK), located at "C:\CSD", open the Project Options and create the search pathes as shown at picture 2.

Picture 2
Compile and install "ListPrinter.DPK" (ListPrintX.DPK) and after that six new symbols should be be arised in palette "CoSyDat".
If you do not want to continue with ListPrinter, remove ListPrinter from the Delphi palette, erase directory "C:\CSD" including subdirectories and remove the search path made at picture 1.
![]()
Yes, it will work with direct descendants of TListView, TDBGrid, TStringGrid,
TRichEdit,TMemo etc. but not with the ancestor like "TCustom..." of this
VCL.
If you want to link to a direct descendant of TCustomListView or TCustomDBGrid you have to
own the registered version in order to be able to alter the source code.
Please open the individual Example Page and see if examples are available for specialized version of the standard components, delivered from thid parties.
![]()
Yes, all the "Packs" can assign "TMemo.Lines" or "TxxList.Items to the property TListPrinter.Lines and can been previewed and printet out as plain text. For examples see "MemoDemo" and "TextReport" demo.
![]()
Yes, if you understand the English language you can translate the resource files to your native language, supplied with the unregistered download "ListPrint.zip" respectively with all other "Pack's". You do not have to create "*.RES" files because the resource files are "ResourceString" files.
These files are:
| LPKConst.PAS for the ListPrinter | |
| LPKTBConst.PAS for the ListPrinter's ToolBar | |
| LVAConst.PAS for the TAction descendants "ListViewAction" | |
| KSettings.DFM for the "Setting" dialogs. |
These files are located as shown at ListPrint.ZIP.
| Create a new directory "...\CSD\Resources\MyLang" | |
| Copy the originals to this directory | |
| Translate the strings respectively the DFM to your language | |
| Copy the translated files to that folder, where the respective "DCU" files are located | |
| Recompile |
![]()
How to install ListPrinter.DPK under Delphi 5.x ... ?
Install ListPrint(X).DKP using your normal procedure or as
described under Installation.
(X):
| ListPrint4.DPK if you have downloaded FREEWARE ListPrint4.ZIP for Delphi 4. | |
| ListPrint5.DPK if you have downloaded FREEWARE ListPrint5.ZIP for Delphi 5. |
for Delphi
![]()
How can the ListPrinters "Setting" dialog be opened separately ... ?
The following code snipes will do the job:
procedure TMainForm.ActionPageLayExecute(Sender: TObject);
begin
try
FormListPrint := TFormListPrint.Create(Self);
FormListPrint.RichEdit98Print1.ReadRegistry;
FormListPrint.RichEdit98Print1.CreateTheFriendlies;
FormListPrint.RichEdit98Print1.ActSetPageLayout;
finally
FormListPrint.Free;
end;
end;
![]()
Can the ListPrinter properties programmately changed at runtime
Yes, this can be done after creating and before ShowModal of ListPrinter as shown at the examples supplied with the ListPrinter:
procedure TFormMain.ToolButton1Click(Sender: TObject);
begin
If (Sender is TToolButton) then T := 0 else
if (Sender is TMenuItem) then T := (Sender as TMenuItem).Tag;
try
FormListPrint := TFormListPrint.Create(Self);
// Almost all properties can be set at this position (Example from DBGridPack
Demo)
// Properties see file Interface.HTM at direcktory
"...CSD\Manual\"
FormListPrint.DBGridPrint1.AsgnDBGrid := DBGrid1; (or DBGrid 2 etc.)
FormListPrint.DBGridPrint1.WSFileName :=
ChangeFileExt(Table1.TableName, '.XLS');
FormListPrint.DBGridPrint1.Orientation := poLandScape;
FormListPrint.DBGridPrint1.PrintWYSIWYG := True;
FormListPrint.DBGridPrint1.HeaderText := 'On-the-fly Header performed
by Example Demo';
FormListPrint.DBGridPrint1.FooterText := 'On-the-fly Footer performed
by Example Demo';
FormListPrint.DBGridPrint1.ActPreparePreview;
If T = 5 then FormListPrint.DBGridPrint1.ActRunPrintout else
FormListPrint.ShowModal;
finally
FormListPrint.Free;
end;
end;
Explanation for T:
| T = O Preview and Printout | |
| T = 5 direct printout without Preview |
![]()
How to learn by example to run ListPrinter's different versions ... ?
Download the following examples, containing each the compiled example for first impression and the source code of the example itsself. Use this as outgoing point for your own development.
| FREEWARE demo of TDBGridPrinter,
linked to a TDBGrid and table PARTS.DB or table ORDERS.DB. wwDBGridDemo using wwDBGrid from InfoPower. Demo including source code. You need to have been registered for TListPrinter or at least for TDBGridPrinter but also to have the components from InfoPower available, which not are included with the source code (No example available, source code upon request). TopazGridDemo using TTzGrid from Software Science Inc. Demo including source code. You need to have been registered for TListPrinter or at least for DBGridPack but also to have the "TOPAZ" components from Software Science Inc available, which not are included with the source code (Contains compiled example with source code of the example; ListPrinter source code upon request). FREEWARE demo of TListViewPrinter, linked to a TListView, including own independent data base PARTS.DAT. Demo DblListViewDemo (download FREEWARE), based on CoSyDat ListPrinter and TListView, including source code for the application. Example for the use of the ListPrinter in conjunction with two TListView components as "relational databank system": 1. ListView for administration of database "Parts.DAT", relational with: 2. ListView for administration of database "Vendors.DAT". Both based on records and absolutely independent of any DBE; | |
ExtListViewDemo using ExtListView from Brad
Stowers (http://www.delphifreestuff.com/). | |
SysListViewDemo using SysControlPack from Brad
Stowers (http://www.delphifreestuff.com/). | |
FREEWARE demo of MemoPrinter linked to a TMemo. | |
FREEWARE demo of RichEditPrinter linked to a TRichEdit. | |
| RichEdit98Demo, ListPrinter linked
with a RichEdit98
from Alexander Obukhov, Minsk, Belarus,
E-mail aleko@bcsmi.minsk.by or via download from Delphi Super Page as "RichEdit98.ZIP". For getting the source code you need to have been registered for ListPrinter or at least for TextPack, but also to have the component RichEdit98 from Alexander Obukhov installed, which not are included with the source code. FREEWARE demo of TextReportPrinter as free designed report. Included are tables, Memo text, xxxListBox content as well as bitmaps. |
![]()
Yes, a history will be issued here and, if available, with file "History.TXT" included in the downloads. For newest downloads always use the address http://www.cosydat.com/delphi/.
For detailed information about the file status of the downloads go to Packages .
Version 1.0, Initial issue at February 6th 1999. (not anymore available) | |
Version 2.0, Initial issue at October 15th 1999, is a complete new design and not compatible with Version 1.0 |
![]()