Loading a Form from File
Наши примеры проектов и шаблоны отчётов помогут Вам разобраться в основах работы с нашими продуктами.Load an MRT form from disk, export it with StiPdfExporter, save the PDF, and open the document.
Reading the MRT file. The console application creates a StiForm instance and loads the template directly from disk.
Exporting and opening it. The entry point in
Reading the MRT file. The console application creates a StiForm instance and loads the template directly from disk.
Exporting and opening it. The entry point in
Loading a Form from File/Program.cs exports the loaded form, writes the PDF bytes, and opens the saved document:var form = new StiForm();
form.Load(@"Data\SoftwareEvaluationSurvey.mrt");
var exporter = new StiPdfExporter();
var pdf = exporter.ExportForm(form);
string path = "form.pdf";
File.WriteAllBytes(path, pdf);
Process.Start(new ProcessStartInfo(path) { UseShellExecute = true });