B4J Question [ABMaterial] ABMTreeTable print requires ABMPrint.PrintToPdf

amminf

Active Member
Licensed User
Longtime User
Hi,

In ABMaterial, in ABMTreeTable, refers: "You can even use them to create simple reports (see the ABMPrint module)."


if in CompTreeTablePage.bas module, I decomented this:

Sub btnPrint_Clicked(Target As String)
Log("print clicked")

'page.ws.RunFunction("doprint", Null)
'page.ws.Flush

Dim view1 As ABMTreeTable = page.Component("view1")
Dim pdfname As String
pdfname = "test" & DateTime.Now
ABMPrint.PrintToPDF(page, Me, theme, "view1", view1, File.DirApp, pdfname & ".pdf")
End Sub



Compiling show this error:
Error description: Unknown member: printtopdf
Occurred on line: 585
ABMPrint.PrintToPDF(page, Me, theme, "view1", view1, File.DirApp, pdfname & ".pdf")
Word: printtopdf



Regards
 

amminf

Active Member
Licensed User
Longtime User
No. I uncommented in CompTreeTablePage.bas module from my local ABMaterial demo sources.

Where is ABMPrint class ? ABMPrint is a .class format (binary file)
 
Last edited:
Upvote 0
Top