[Gambas-user] Issue 441 in gambas: Caling Report print not working when report takes some arguments
gambas at ...2524...
gambas at ...2524...
Tue Jun 18 07:41:17 CEST 2013
Status: New
Owner: ----
Labels: 3.4.1 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 441 by isaf... at ...626...: Caling Report print not working when
report takes some arguments
http://code.google.com/p/gambas/issues/detail?id=441
1) when report takes some arguments (e.g. Public Sub _new(txtname As
String) ) then preview is working but print is not working. However when
report doesn't take any extra argument then both preview and print works
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: 3.4.1 (using PPA)
Revision: r1234 (if you use a development version)
Operating system: Linux
Distribution: Ubuntu 12.04
Architecture: x86
GUI component: QT4 / GTK+
Desktop used: Gnome
3) Provide a little project that reproduces the bug or the crash.
I have a report "Report1" with a label and a form with textbox and button.
The label in report gets data from textbox on form when called for printing
the report. In report:
Public Sub _new(txtname As String)
ReportLabel1.Text = txtname
End
In form:
Private hReport As Report
Public Sub Button1_Click()
hReport = New Report1(TextBox1.Text)
hReport.Print
End
The error comes "No enough arguments". However it works when
hReport.Preview
I searched but couldn't find suitable answer in any fourm.
4) If your project needs a database, try to provide it, or part of it.
No
5) Explain clearly how to reproduce the bug or the crash.
as above
Attachments:
report.zip 7.8 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
More information about the User
mailing list