I am generating a 2D barcode with a different 3rd party control and storing as a PNG in path on user workstation. I need to display each unique image for a given page in the header to facilitate forms processing. I need to set a PiciureBox on each report page to the unique barcode image associated with that specific page.
I am using VB.Net 2008 with Telerik Reporting Q3 2010. Telerik Reporting supports 1D barcodes, but my requirements call for using a 2D Datamatrix barcode image.
6 Answers, 1 is accepted
Thank you for the appraisal :)
About your inquiry you can set the PictureBox.Value dynamically with a Binding to an User Function as the following one:
public static Image GetBarcode(int pageNumber)
{
Image image = new Bitmap("barcode" + pageNumber + ".jpg");
return image;
}
In a such User Function you can find the concrete barcode for a given page and return it as an Image to the PictureBox item. Kind regards,
Peter
the Telerik team
Hello,
I have similar question for report header picture display, the difference is I have main report and multiple sub report on that report. Currently I have picture on the main report header and it display perfectly on all sub reports.
We have new requirements to display different image on the first page (main report page) and rest of the report will get the same image. I am loading image from the database.
Please provide example.
Thanks in advance.
Thanks for your help in advance.
Based on your description our suggestion is to use the main report's page header and set the PictureBox.Value with Bindings and the following User Function:
public
static
Image GetPageImage(
int
pageNumber)
{
if
(pageNumber==1)
return
ImageForPage1
else
return
ImageForPage2
}
Your PictureBox Binding should look like:
Property Path
|
Value
|
Value
|
= GetPageImage(Parameters.OrgLogo.Value, PageNumber)
|
Give it a try and if you need additional assistance we will appreciate if you elaborate further and send us some screenshots that illustrate your goal. Kind regards,
Peter
the Telerik team
Visible on the first page as false.
It work perfact as I want.
Thanks,
Sunil.