如何在 C# 中以编程方式打开 Microsoft Infopath?

发布于 2024-09-06 22:13:16 字数 137 浏览 1 评论 0原文

我需要提供相当于超链接的内容才能在 UI 中打开新的信息路径表单。然而,这就是按钮应该做的所有事情 - 在 InfoPath 中通过文件路径打开正确的表单,然后应该删除引用。

有谁知道该怎么做?

谢谢!!

坏熊猫

I need to provide the equivalent of a hyperlink to open a new infopath form within my UI. However, that is all that the button should do - open the correct form by filepath, in InfoPath, and then the reference should be dropped.

Does anyone know how to do this?

Thanks!!

badPanda

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

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++;
            }
        }
    }

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

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++;
            }
        }
    }

This is the code I used to solve the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文