简体   繁体   English

如何替换插入到水晶报告中的图片中的部分文本?

[英]How can I replace a portion of text in a picture that was inserted into a crystal-report?

I have a report containing an inserted picture.我有一个包含插入图片的报告。 There is a specific portion of the picture I wish to eliminate;我希望删除图片的特定部分; in a sense, I want to 'erase' a portion of some text that is in the picture.从某种意义上说,我想“擦除”图片中某些文本的一部分。 And, ultimately, I would like the option to insert a text box and do a 'custom replace' of that text within the picture.而且,最终,我希望插入一个文本框并对图片中的文本进行“自定义替换”。

So far, I inserted a text box with some text, but the picture shows through and I see double text.到目前为止,我插入了一个带有一些文本的文本框,但是图片显示出来并且我看到了双文本。

The best option for you would be to edit the file that was originally used to insert the picture into your report.您最好的选择是编辑最初用于将图片插入报告的文件。 This will require some kind of editing software though.不过,这将需要某种编辑软件。 Once you have made the edits to the original picture, you may then remove the inserted picture from your report and then insert it anew using the new version of the picture.对原始图片进行编辑后,您可以从报告中删除插入的图片,然后使用新版本的图片重新插入。

If editing the image is not an option you could effectively cover up a portion of the picture using a Text Box object.如果编辑图像不是一个选项,您可以使用文本框 object 有效地掩盖图片的一部分。 However, by default a text box object will have no background color set, which makes it transparent.但是,默认情况下,文本框 object 将没有设置背景颜色,这使其透明。 This is why you see the image behind the text box you inserted into your report.这就是为什么您会看到插入到报表中的文本框后面的图像。 If you right click the text box and then select "Format Text" to open the Format Editor window.如果您右键单击文本框,然后 select“格式化文本”打开格式编辑器 window。 Then go to the "Border" tab in the Format Editor window and click the check "Background" checkbox in the Color group, then use the drop-down to select the background color for your text box object. Then go to the "Border" tab in the Format Editor window and click the check "Background" checkbox in the Color group, then use the drop-down to select the background color for your text box object. You will likely want to use white as the background color unless your report has some other background color you need to match.您可能希望使用白色作为背景颜色,除非您的报告有其他需要匹配的背景颜色。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM