如何使用动态图像创建页面以在Ms报告中使用 [英] How Do I Create A Page With A Dynamic Image To Be Used In Ms Reporting

查看:91
本文介绍了如何使用动态图像创建页面以在Ms报告中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在尝试创建一个接收一些参数的aspx页面,并用动态图像(条形码图像)或内存流(条形码)进行响应在ms报告中使用(.rdlc文件)



我可以轻松使用网页中的图像

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

Me.b39.ImageUrl = "~/barcodeImageReturn.aspx?barcoTipo=39&barcoText=" + barcode.Text



barcodeImageReturn页面的内容类似于


the barcodeImageReturn page makes something like

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)





,这很完美



但是......



如果我想在我的报告中使用这样的东西,我无法理解这是如何工作的...或者我必须如何创建aspx页面



例如,这是有用的完美:


在.rdlc报告中
我放了一个图像控件,

我声明外部,图像和报告



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

value
="http://www.bcgen.com/aspxscripts/idautomation-code39.aspx?D=MYBARCODE"



这个有效,但我无法理解这是如何工作的...本页回复???



非常感谢



Nibbio


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

Many Thanks

Nibbio

推荐答案

这篇关于如何使用动态图像创建页面以在Ms报告中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆