Author: Poul Bak Copyright © 2000 : BakSoft-Denmark (Poul Bak). All rights reserved. http://home11.inet.tele.dk/BakSoft/ Mailto: baksoft-denmark@dk2net.dk Component Version: 2.00.00.00 TPBPrinterSetupDialog is a TPrinterSetupDialog component with capability of getting/setting printersetup-values (orientation, papersize etc) at designtime and runtime. Settings can be saved so users don't have to setup the printer every time they run your program. Standard PrinterSetupDialog is used as propertyeditor. At runtime you can switch between 4 setuptypes: stDefault (like standard PrinterSetupDialog), stInitial (settings set at designtime), stSaved (user defined settings saved) and stUser (settings set when the dialog has executed). AutoSave and ForceInitialSetupValues. Context-sensitive help is included. How to use: First set the InitialSetupOptions (the values you want to change from default). Then either: Click the ellipse-button by InitialSetupValues (or double-click the component on the form) to launch a PrinterSetupDialog, change the values there and press 'Ok'. Or: Double-click +InitialSetupValues to expand the sub-properties. Set the values by picking from the lists or enter your own values. That's enough - use the other properties if you like. Note: When you have selected the PBPrinterSetupDialog component on the form, the printersettings will follow the settings of the component until you deselect the component again (or closes your project). Pay attention if you prints from Delphi. Legal stuff: ------------ PBPrinterSetupDialog is Freeware. Use it any way, you like. There is no timelimit or 'nag-screens'. Applications developed using this component are yours alone, Baksoft-Denmark have no rights to it. PBPrinterSetupDialog is provided 'as-is' and Baksoft-Denmark is under no circumstances responsible for any damage, what soever, that it might cause to anyone or anything. Installation: ------------- 1. Unzip all files to a folder of your choice. 2. Start Delphi (if you haven't done so). 3. Choose menu 'Component', 'Install Component...', browse to the folder that contains the unzipped files, choose 'PBPrinterSetupDialog .pas' and open the file. Press 'Ok'. Press 'Yes' to confirm rebuild. PBPrinterSetupDialog is now Registered. Close the window (save the changes). Now you have a new Palette-page named 'PB' with the new component. Install context-sensitive help: ------------------------------- 1. Move or copy 'PBPrinterSetupDialog.hlp' and PBPrinterSetupDialog.cnt' to ..\Delphi 3\Help folder. 2. Doubleclick 'Delphi3.cnt' and 'Microsoft Help Workshop' starts. Click 'Index Files', 'add'. Type 'PBPrinterSetupDialog help' as Help title and 'PBPrinterSetupDialog.hlp' as Help filename. Click 'Ok'. 3. Include 'PBPrinterSetupDialog' on the main page (Insert above). 4. Exit 'Microsoft Help Workshop' and save the changes. Now you have full context-sensitive help for the PBPrinterSetupDialog component. -------------------------------- I have included a small demo: Project1.exe to show the basics. Load, compile and run. If you find any bugs, have any great ideas or just a comment or question, feel free to e-mail.