加载应用图像 [英] Loading an applying an image

查看:92
本文介绍了加载应用图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我们在ActivePDF工具包的帮助下使用VB6.0生成pdf。在那里我需要在背景中为每行中的每个单元格应用黄色图像。在此之前,我想将图像加载到内存中,而不是在循环中多次从服务器
加载它。

We are generating the pdfs using VB6.0 with the help of ActivePDF tool kit. In that I need to apply yellow colored image at the background for every cell in every row. Before that I want to load the image in a memory instead of loading it from server several times in a loop.

目前我们使用ActivePDF的SetFormFieldData方法将图像应用于PDF上的文本字段。

Currently we are using SetFormFieldData method of ActivePDF to apply image to a text field on PDF.

这是在循环中执行的现有代码行: -

Here is the existing code line which executes in a loop:-

.SetFormFieldData" TextFieldName",iLine," image name from server",-995

Cn有人告诉我如何加载图像循环开始之前的一次,并在
"服务器中的图像名称'......的地方使用它......

Cn anyone tell me how I can load the image at one time before the loop starts and use it at the place of "image name from server"......

推荐答案

我不确定这适用于你,但这适用于VB 2010 Express,用于将图像存储到变量

I am not sure that this would apply to you but this works in VB 2010 Express for storing images to variables

Dim temp As Image
       temp = Image.FromFile("File Name")


我只是觉得值得一提。

I just thought that it would be worth mentioning.


这篇关于加载应用图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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