PDA

View Full Version : First Production Report



Boris
4-Aug-2010, 10:46 AM
This is my first production report, it just won't start, why? Here is the code:



Object VRW_Bancos is a cVisualReport
Set psReportName to 'bancos.vrw'
End_Object




Procedure OnClick
String sReportId
Get OpenReport of VRW_Bancos to sReportId
Set peOutputDestination of VRW_Bancos to PRINT_TO_WINDOW
Send RunReport of VRW_Bancos
End_Procedure

Vincent Oorsprong
6-Aug-2010, 03:38 AM
Boris,

Your code does not show if you set a size or location of the VRW_Bancos report object. The cVisualReport class (as in the release) contains a feature to set the size to the size of the container (the view?) minus 10 and the location to 5 5. Check if the object has a screen to show the data.

Secondly, RunReport does an OpenReport too, so the OpenReport is not needed. In fact it even closes the report you just opened yourself. Use either RunReport alone or send OutputReport instead of RunReport.