I need to connect a report file to a AX application made in Visual Studio. I tried to code it, but I get mostly token errors or my button doesn't respond.
Edit.
I need to connect a report file from Microsoft Report Builder into a form in Dynamics 365. I need to be able to run this report file from a form with a onclick button everything is running in a cloud. I'm new into this and I try to find a solution. I tried to find a answer in microsoft docs and other sites but nothing really did help me, most propably i just don't know how to use this.
Edit2
IM using Microsoft Report Builder and after i create a report i export it into a pdf or excel file. Now i need to run it with 365FO. For it i created a project in visual studio, made a form with a menu and a button that should somehow run it. But still i don't even know where should i store this file to use it.
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();
}
}