Questions and Answers

FAQ about CoSyDat's ListPrinter

I N D E X  of  T H E M E S

  1. What can I do with the FREEWARE of ListPrint.ZIP without registering ...?
  2. How can I proceed to get registered source code for own alterations ...?
  3. Are recommendations available for the installation of ListPrinter ... ?
  4. Is Listprinter able to work with other descendants of TListView or TDBGrid etc...?
  5. Is Listprinter able to preview and print a plain text from TMemo or TStrings?
  6. Can ListPrinter be translated to my language ... ?
  7. Is a delivery status or history of ListPrinter issued ... ?
  8. How to install ListPrinter.DPK under Delphi 5.x ... ?
  9. How to learn by example to run ListPrinter's different versions ... ?
  10. How can the ListPrinters "Setting" dialog be opened separately ... ?
  11. Can the ListPrinter properties programmately changed at runtime

What can I do with the download of ListPrin.ZIP without registering...?

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  

Back to top

How can I proceed to get registered source code for own alterations ...?

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

ListPrinter.ZIP A)

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).

Back to top

Are recommendations available for the installation of ListPrinter ... ?

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.

Delphi Environment Options
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.

Delphi project options
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.

Back to top

Is Listprinter able to work with other descendants of TListView or TDBGrid...?

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.

Back to top

Is Listprinter able to preview and print a plain text from TMemo or TStrings?

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.

Back to top

Can ListPrinter be translated to my language ... ?

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:

bulletLPKConst.PAS        for the ListPrinter
bulletLPKTBConst.PAS    for the ListPrinter's ToolBar
bulletLVAConst.PAS      for the TAction descendants "ListViewAction"
bulletKSettings.DFM      for the "Setting" dialogs.

These files are located as shown at ListPrint.ZIP.

bulletCreate a new directory "...\CSD\Resources\MyLang"
bulletCopy the originals to this directory
bulletTranslate the strings respectively the DFM to your language
bulletCopy the translated files to that folder, where the respective "DCU" files are located
bulletRecompile
Back to top

How to install ListPrinter.DPK under Delphi 5.x ... ?

Install ListPrint(X).DKP using your normal procedure or as described under Installation.
(X):

bulletListPrint4.DPK if you have downloaded FREEWARE ListPrint4.ZIP for Delphi 4.
bulletListPrint5.DPK if you have downloaded FREEWARE ListPrint5.ZIP for Delphi 5.

for Delphi

Back to top

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;

Back to top

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:

bulletT = O    Preview and Printout
bulletT = 5    direct printout without Preview
Back to top

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.

bulletFREEWARE 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;
bullet

ExtListViewDemo using ExtListView from Brad Stowers (http://www.delphifreestuff.com/).
Demo including source code. You need to have been registered for ListPrinter or at least for ListViewPack but also to have the component ExtListView from Brad Stowers installed, which not are included with the source code.

bullet

SysListViewDemo using SysControlPack from Brad Stowers (http://www.delphifreestuff.com/).
Demo including source code. You need to have been registered for ListPrinter or at least for ListViewPack but also to have the component SysControlPack from Brad Stowers installed, which not are included with the source code.

bullet

FREEWARE demo of MemoPrinter linked to a TMemo.

bullet

FREEWARE demo of RichEditPrinter linked to a TRichEdit.

bulletRichEdit98Demo, 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.

Is a delivery status or history of ListPrinter issued ... ?

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 .

History

bullet

Version 1.0, Initial issue at February 6th 1999. (not anymore available)

bullet

Version 2.0, Initial issue at October 15th 1999, is a complete new design and not compatible with Version 1.0

Back to top

Back to CoSyDat's Delphi Corner
If the infos above did not answer your questions, please contact: Info@cosydat.com.
Information are given without any guarantee.
Copyright © [CoSyDat Software Engineering, Dieter Kehr]. All rights reserved.
Issued: 30. Mai 2004.