Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi
I'm trying to create an aspx page that receives some parameters and responde with a dynamic image (a barcode image), or a memory stream (of the barcode) to be used in ms report (.rdlc file)

I can use easily the image in a webform
VB
Me.b39.ImageUrl = "~/barcodeImageReturn.aspx?barcoTipo=39&barcoText=" + barcode.Text

the barcodeImageReturn page makes something like
VB
Dim b39 As New CreaBarcode39.myCreaBarcode39()
 
Dim ms = New MemoryStream()
ms = b39.GenerateBarcodeImageMemoryStream(b39.GetBarcodeMinimumImageWidth(barcoText), 30, barcoText)
 
Dim bytes = ms.ToArray()
 
Response.BinaryWrite(bytes)


and this works perfectly

BUT ...

if I want to use something like this in my report, I can't understand how this works ... or how I must create the aspx page

for example, this works perfectly:

in a .rdlc report I put an image control,
I declare external, both image and report
VB
value
="http://www.bcgen.com/aspxscripts/idautomation-code39.aspx?D=MYBARCODE"

this works, but I can't understand how this works ... what does this page responde???

Many Thanks

Nibbio
Posted
Updated 14-May-14 23:25pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900