c# - 需要帮助将事件按钮与文件连接起来
问题描述
我需要将报表文件连接到在 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();
}
}
解决方案
推荐阅读
- javascript - 基于JWT-token登录后如何将用户重定向到另一个页面?
- node.js - 无法在 Pentaho 3.7 版本中运行 report-designer.bat 文件
- shell - groovy脚本在一个进程中执行多个shell命令
- c# - 在 Xamarin 中使用 SkiaSharp 动态绘制线条
- azure - 发布到 Azure 时出错
- rabbitmq - @RabbitListener 用于多个类中的同一队列
- .htaccess - 每个网址的https重定向都不起作用
- xamarin.forms - 如何在 Xamarin 表单中安装和运行 apk 文件?
- performance - 两个相同的空内核上的奇怪 cuda 性能。
- python - 根据特定列中的值将函数应用于熊猫中的数据框行