Posted 10 May 2024, 8:47 am EST
Hey, everybody! I hope things are great with you. I’ll give you some extra details, because I don’t know which part would be important for my question.
I have a node microservice that has a headless puppeteer that exports a pdf via active reports, and then on my active report function I basically have a .setLicenseKey, .registerFonts, .PageReport, then I load this page report, then I run it and finally export it as a report binary. Then, using express, I use parsers, encoders, and listen on a specific port. I make a post request to an endpoint and call the active report function that I mentioned above.
The json in the body looks like this:
{
id: ‘182asasiexample’,
definition: {
Name: ‘test’,
Page: {
Columns: 1,
PageWidth: ‘3.5in’,
TopMargin: ‘0in’,
LeftMargin: ‘0in’,
PageHeight: ‘5.5in’,
RightMargin: ‘0in’,
BottomMargin: ‘0in’,
ColumnSpacing: ‘0.5in’
},
Width: ‘3.5in’,
Author: ‘email@email’,
Layers: [ [Object] ],
DataSets: [ [Object] ],
FixedPage: { Pages: [Array], DataSetName: ‘Customer’ },
DataSources: [ [Object] ],
EmbeddedImages: [ [Object] ],
CustomProperties: [ [Object], [Object], [Object] ]
},
displayName: ‘Test’,
fontsDescriptors:
}
So, this pdf is generated based on the json received (and some configuration/custom fields that changes for every client).
Now the most important part:
I’m having a lot of trouble transferring this node code to an WPF application, to make it easier to run locally. I’ve researched the documentation but in all of the active report projects in visual studio (active reports asp.net, active reports winforms, etc), there are some things/configurations that are not present in the node/js version, such as a .rdlx file, for example, which I have absolutely no idea what to do with, since I’ll be passing a json via http. Does anybody have a video or an example of making such change?