I want to create a PDF from C# in my Windows Forms application. I am using Infragistics for the UI, so I thought there might be "somehting" in Infragtistics that I can use for that.
I have some plain text data, that is just in a ".txt" file and not in some control in the UI. How can I create a simple PDF with just "Hello world", to start easy. Is there an example available for C#?
Report report = new Report();
ISection section = report.AddSection();
section.PagePaddings = new Paddings(50, 50, 50, 0);
IImage image = section.AddImage(new Infragistics.Documents.Reports.Graphics.Image(@"..\..\Images\infragistics-logo.png"));
IText text = section.AddText();
text.Margins.All = 15;
Thanks Bozhidara, that helped a lot.
I have another question regarding Report, maybe you can help me again: Now I wonder how can I visually design a layout for the report and use this as a "template" for the report and fill in the data with the Infragistics document API? Is there some documentation about this, maybe also a video?
And an additional question: Can I create the program on a Windows machine and let it run on a Linux machine with .NET Core?
I found the documentation for the document engine. So I guess there is no graphical desginer, where I can design the layout of the report with a GUI? I have to do it all by coding as showed in your example, right?
Regarding the Infragistics DLL's: Do they run in Linux under .NET Core? Are there special libraries available for Linux? Or are that the same as for Windows?