如何从Visual Basic 6在Crystal Report 8中显示图像 [英] How to display Image in Crystal Report 8 from Visual basic 6

查看:105
本文介绍了如何从Visual Basic 6在Crystal Report 8中显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用名为"House_mst"的MS Access表,其中包含以下字段:

I am using MS Access table named "House_mst" containing the following fields:

camera_no                     Text
pno                           Text
pic                           Text   // This field have path of image (i.e. .jpg file)



通过Crystal报表8,我想动态显示字段"pic"中在路径中提到的图像.请帮我. 非常紧急.



through Crystal report 8, I want to display the image mentioned in path in field "pic" dynamically. Plz help me. Its urgent. what i have to do?

推荐答案

我不确定Crystal 8,但这在Crystal 11中有效,因此请尝试类似的方法.

1)在您的报告中插入图片.您必须从一些图片开始,哪一个都没关系.

2)右键单击图片,然后从弹出的格式"菜单中选择设置图形格式".

3)在格式编辑器"对话框中单击图片选项卡.

4)单击该页面底部的图形位置"公式按钮.

5)将参数拖放到公式"部分中.您的图形位置公式应仅包含参数字段.

6)保存.

7)现在,当您传递参数时,不应将其用引号引起来:这将无法计算.只需将路径传递到图像和图像名称,例如c:\ pics \ cat.bmp.


那应该在这里和那里做一些改动.
I am not sure about Crystal 8, but this works in Crystal 11 so try and work out something similar.

1) Insert a picture in your report. You have to start with some picture, it doesn''t matter which one.

2)Right click on the picture and choose Format Graphic from the popup Format menu.

3) Click the picture tab in the Format Editor dialog.

4) Click the Graphic Location formula button at the bottom of that page.

5) Drag and drop your parameter into the formula section. Your graphic location formula should just contain the parameter field.

6) Save it.

7) Now when you pass your parameter, you should not enclose it in quotes: that will not compute. Just pass the path to the image and the image name, such as c:\pics\cat.bmp.


That should do with some alterations here and there.


这篇关于如何从Visual Basic 6在Crystal Report 8中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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