Printing one selected post
Hi.
I have FR-Basic v.1.2
I am new to programming and with FR, so i hope some one here can help me.
I have been making a report, but when i are going to print, it will print all the data, and not the data that is active.
Eg.: I have ID, Description, Price and Info
In one report i will print all the items, and this works fine, but in report2, i will only print the selected item from the form.
Did some one understand what i try to do?? Sorry for my bad English [img]style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> I make this in VB.Net Thanks for the help. Best regards from Ken[/img]
I have FR-Basic v.1.2
I am new to programming and with FR, so i hope some one here can help me.
I have been making a report, but when i are going to print, it will print all the data, and not the data that is active.
Eg.: I have ID, Description, Price and Info
In one report i will print all the items, and this works fine, but in report2, i will only print the selected item from the form.
Did some one understand what i try to do?? Sorry for my bad English [img]style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> I make this in VB.Net Thanks for the help. Best regards from Ken[/img]
Comments
You may use report parameter to pass the selected value before running a report:
report.SetParameterValue("selectedValue", your_selected_value)
in the report, you need to filter the datasource. To do this, double-click the data band and set its filter condition:
[myTable.MyColumn] = [selectedValue]
(you need to choose the VB.Net language in the Report|Options... menu).