本文介绍了单词中的Textinput表单字段在插入代码后不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我有一个模板word文件需要用输出数据创建。在myword文件中我有textinput字段和复选框。我为formfield textinput字段编写了一个代码来插入数据。但这不能在输出文件中显示字段代码更改消息。请找到下面的代码,并让我知道我需要做的任何其他事情。



Hi friends,

I have a template word file need to create with output data. In myword file i having textinput field and checkbox. I written a code for formfield textinput field to insert data.But thats not working in the output file showing field code changed message. please find below code and do let me know any further things i need to do.

if (formField.Type == Microsoft.Office.Interop.Word.WdFieldType.wdFieldFormTextInput)
           {
               string val = formField.TextInput.Default;
               if (objectval != "")
               {
                   if (val == "")
                   {

                       formField.TextInput.Default = objectval;

                   }
               }
               return "Find";
           }

推荐答案

这篇关于单词中的Textinput表单字段在插入代码后不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 08:31