0

我需要提供等效的超链接来在我的 UI 中打开一个新的 infopath 表单。但是,这就是按钮应该做的所有事情 - 在 InfoPath 中通过文件路径打开正确的表单,然后应该删除引用。

有谁知道如何做到这一点?

谢谢!!

坏熊猫

4

1 回答 1

0
void mDisplayForm_Click(object sender, EventArgs e)
    {
        int count = 0;
        foreach (ToolStripMenuItem template in mDisplayForms)
        {
            if (sender.ToString() == template.Text)
            {
                Process infoPath = new Process();
                infoPath.StartInfo.FileName = "InfoPath.exe";
                infoPath.StartInfo.Arguments = templates[count];
                infoPath.Start();
                count++;
            }
        }
    }

这是我用来解决问题的代码。

于 2010-06-22T14:57:29.127 回答