在晶体报告中更改运行时blob字段的高度和宽度 [英] change blob field height and width at run time in crystal report
问题描述
我正在研究Crystal报告XI。我想改变斑点场高度&根据实际图像大小的宽度。
I am working on Crystal report XI . I want to change blob field height & width acording to the actual image size.
如果我修复了blob字段大小而不是图像被拉伸,那么我想根据图像大小在运行时设置大小。
If i fix the blob field size than image got stretched , thans why i want to set size at run time according to the image size.
谢谢,
HP
推荐答案
Hi 306401,
Hi 306401,
Dim imgImage As Image'是图像
Dim imgImage As Image ' Is the Image
objRpt .ReportDefinition.ReportObjects(" Logo")。Height = imgImage.Height
'" Logo"是Blob字段
objRpt.ReportDefinition.ReportObjects("Logo").Height = imgImage.Height '"Logo" is The Blob Field
objRpt .ReportDefinition.ReportObjects(" Logo")。Width = imgImage.Width
' objRpt是报告对象
objRpt.ReportDefinition.ReportObjects("Logo").Width = imgImage.Width 'objRpt is the Report Object
这篇关于在晶体报告中更改运行时blob字段的高度和宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!