Wordize for .NET, raporlama otomasyonu ve programlı HTML belge üretimi için profesyonel bir çözümdür. ReportBuilder sınıfı, C# geliştiricilerine şablonlar ve LINQ sözdizimi kullanarak HTML sayfaları oluşturma yeteneği sağlar, bu da iş zekası süreçlerini hızlandırmaya, dinamik HTML içeriğini web sistemleri ve kurumsal portallarla entegre etmeye yardımcı olur.
İşlevsel Özellikler:Bu sayfada sunulan interaktif çevrimiçi demo'da HTML raporlarının programlı üretim yeteneklerini test edin. Bunun için belge şablonu, veri dosyası (JSON, XML veya CSV) yükleyin, işlemi çalıştırın ve doğrulama için üretilen HTML belgeyi indirin. Sağlanan C# kod parçacığı .NET projenizde kullanıma tamamen hazırdır.
using Wordize.Reporting;
var dataSource = new JsonDataSource("data.json");
ReportBuilder.BuildReport("Input.html", "Output.html", dataSource, "");
using Wordize.Reporting;
var dataSource = new JsonDataSource("data.json");
ReportBuilder.BuildReport("Input.html", "Output.html", dataSource, "");
using Wordize.Reporting;
using Wordize.Saving;
var dataSource = new JsonDataSource("data.json");
var imageStreams = ReportBuilder.BuildReportToImages("Input.html",
new ImageSaveOptions(SaveFormat.Html), new[] { dataSource }, new[] { "" });
foreach (var (stream, page) in imageStreams.Select((s, i) => (s, i)))
{
using var _ = stream;
stream.Position = 0;
using var file = File.Create($"Output_{page + 1}.html");
stream.CopyTo(file);
}
using Wordize.Reporting;
var dataSource = new XmlDataSource("data.xml");
ReportBuilder.BuildReport("Input.html", "Output.html", dataSource, "");
using Wordize.Reporting;
var dataSource = new XmlDataSource("data.xml");
ReportBuilder.BuildReport("Input.html", "Output.html", dataSource, "");
using Wordize.Reporting;
using Wordize.Saving;
var dataSource = new XmlDataSource("data.xml");
var imageStreams = ReportBuilder.BuildReportToImages("Input.html",
new ImageSaveOptions(SaveFormat.Html), new[] { dataSource }, new[] { "" });
foreach (var (stream, page) in imageStreams.Select((s, i) => (s, i)))
{
using var _ = stream;
stream.Position = 0;
using var file = File.Create($"Output_{page + 1}.html");
stream.CopyTo(file);
}
using Wordize.Reporting;
var dataSource = new CsvDataSource("data.csv", new CsvDataLoadOptions() { HasHeaders = true });
ReportBuilder.BuildReport("Input.html", "Output.html", dataSource, "");
using Wordize.Reporting;
var dataSource = new CsvDataSource("data.csv", new CsvDataLoadOptions() { HasHeaders = true });
ReportBuilder.BuildReport("Input.html", "Output.html", dataSource, "");
using Wordize.Reporting;
using Wordize.Saving;
var dataSource = new CsvDataSource("data.csv", new CsvDataLoadOptions() { HasHeaders = true });
var imageStreams = ReportBuilder.BuildReportToImages("Input.html",
new ImageSaveOptions(SaveFormat.Html), new[] { dataSource }, new[] { "" });
foreach (var (stream, page) in imageStreams.Select((s, i) => (s, i)))
{
using var _ = stream;
stream.Position = 0;
using var file = File.Create($"Output_{page + 1}.html");
stream.CopyTo(file);
}