Search the Wiki

Viewing 379 to 381 of 408 items

How To…Calculate the Current Print Position

Question “How do I calculate the current position of a component after it has been generated to a report?” Solution Use the OnDrawCommandCreate event of the component to get the current position on the page, then use the conversion utility functions in ppUtils.pas to convert the value into report units. Download: CalcPrintPosition.zip Sample Delphi code:  Full Article…

0

How To…Calc a Dynamic Detail Height

Question “How do I calculate the height of each dynamic detail band’s height as the report is generating?” Solution Use the DetailBand.BeforeGenerate to find the top of each band and the DetailBand.AfterPrint event to find the bottom and calculate the height.  Do this during the first pass of the report to find each height before  Full Article…

0

TIBTransaction IdleTimer

TECH TIP: IdleTimer property on TIBTransaction When using a TIBDatabase and a TIBQuery you must also use a TIBTransaction for writing through to the database. There is a known issue if the IdleTimer property of the TIBTransaction object is set to some positive value. When printed, the report will get stuck on page 0 and  Full Article…

0