[Gambas-user] Unable to print fields on report

Marty mmcg29440 at ...3163...
Mon Feb 10 01:46:39 CET 2014


Fabien,

Thanks for your reply. I tried your first suggestion. Changed autoresize 
and expand to true  on the reportvbox. Still nothing prints.

Tried your second suggestion. Added reporthbox in reportvbox. Added 
lblField to reporthbox with empty text content. Add lblField_Data(Index 
as Integer) sub also.

No results. In debug the main routine ends and the data sub does not 
execute. The reporthbox.DataContent = 10.

New code:

Public Sub _new(sType As String)

   Dim $Query As String
   Dim strTest As String

   $Query = "SELECT tblneighborhood.* FROM tblneighborhood ORDER BY 
Last_Name, First_Name LIMIT 10;"
   hResult1 = modMain.$Con.Exec($Query)
   'Report.Debug = True
   ReportHBox1.DataCount = hResult1.Count
   strTest = CStr(ReportHBox1.DataCount)

End

Public Sub lblField_Data(Index As Integer)

   hResult1.MoveTo(Index)
   Last.Data = hResult1!Last_Name & " " & hResult1!First_Name

End

The  height of the reporthbox is set to 1 cm.

Other suggestions?

Thanks,
Marty




More information about the User mailing list