Subject [IBO] IB_Query printing
Author Paul Hope
Hi

I have just written a descendent of TIB_Query called IB_PrintQuery. It uses the field information contained in the query (like visible, display label, display format etc) to format the print. It will print over multiple pages if all the columns do not fit and will attempt to optimise between Lansdcape and Portrait. It uses the standard Printer object and its own PrintDialog. The PrintDialog shows the number of pages and the print width in pages. There are various published properties like PrintMarginLeft, PrintTitle. PrintSubTitle and PrintTotal Fields. The latter is a list of fieldnames that require totals. The last page will show the totals and attempt to use the display format of the column (not sure this works properly yet).

It is early days and hasn't had much testing - if anyone is interested I will post it somewhere.

Regards
Paul


[Non-text portions of this message have been removed]