Lotus Notes:在文档上显示图像附件 [英] Lotus Notes: Displaying Image attachment on a document
问题描述
我有一个字段(Rich Text),其中包含图像附件的值,但它仅显示图像路径和文件名,而不显示图像.我使用的是错误的字段还是我的代码行中的图像附加问题?附加的代码在下面:
I have a field (Rich Text), that holds the value of an image attachment, but it only display the image path and filename, not as an image display. Am I using the wrong field or there's a problem in my line of code to attach the image? The code to attach is right below:
chqRSIDoc.photodoc = workspace.Openfiledialog(True, "Select a file to attach as photo: ", "", "c:\")
感谢所有帮助. 谢谢!
Appreciate all the help. Thanks!
推荐答案
openFileDialog仅返回一个字符串数组.参见 http://www.ibm.com/support/knowledgecenter/SSVRGU_9.0.0/com.ibm.designer.domino.main.doc/H_OPENFILEDIALOG_METHOD_5310_ABOUT.html
我假设您的chqRSIDoc是NotesDocument的.如果希望将其作为附件,则必须使用NotesRichTextItem.EmbedObject函数.
The openFileDialog returns just a string array. see http://www.ibm.com/support/knowledgecenter/SSVRGU_9.0.0/com.ibm.designer.domino.main.doc/H_OPENFILEDIALOG_METHOD_5310_ABOUT.html
I assume thatyour chqRSIDoc is of NotesDocument. If you want it as an attachment you'll have to use the NotesRichTextItem.EmbedObject function.
这篇关于Lotus Notes:在文档上显示图像附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!