首页 > 解决方案 > 需要帮助将事件按钮与文件连接起来

问题描述

我需要将报表文件连接到在 Visual Studio 中制作的 AX 应用程序。我试图对其进行编码,但我得到的主要是令牌错误,或者我的按钮没有响应。

编辑。

我需要将 Microsoft Report Builder 中的报告文件连接到 Dynamics 365 中的表单。我需要能够从带有 onclick 按钮的表单运行此报告文件,一切都在云中运行。我是新手,我试图找到解决方案。我试图在 microsoft docs 和其他网站上找到答案,但没有什么能真正帮助我,很可能我只是不知道如何使用它。

编辑2

IM 使用 Microsoft Report Builder,在我创建报告后,我将其导出为 pdf 或 excel 文件。现在我需要用 365FO 运行它。为此,我在 Visual Studio 中创建了一个项目,制作了一个带有菜单和按钮的表单,应该以某种方式运行它。但是我什至不知道我应该在哪里存储这个文件来使用它。

using System;
using System.IO;
using System.Text;
using System.Diagnostics;
using System.ComponentModel;

class Class1
{
    
    [FormControlEventHandler(formControlStr(Przyjecia, FormButtonControl1), FormControlEventType::Clicked)]
    public static void FormButtonControl1_OnClicked(FormControl sender, FormControlEventArgs e)
    {
        System.Diagnostics.Process proc = new System.Diagnostics.Process();
        proc.EnableRaisingEvents = false;
        proc.StartInfo.FileName = "c:\\rev.pdf";
        proc.Start();
    }

}

标签: c#.netaxaptamicrosoft-dynamicsx++

解决方案


推荐阅读