BuildReport
BuildReport(string, string, object)
Populates the template document with data from the specified source, generating a completed report.
public static void BuildReport(string inputFileName, string outputFileName, object data)
Parameter | Type | Description |
---|---|---|
inputFileName | String | The input file name. |
outputFileName | String | The output file name. |
data | Object | A data source object. |
Examples
Shows how to populate document with data.
public void BuildReportData()
{
// There is a several ways to populate document with data:
string doc = MyDir + "Reporting engine template - If greedy.docx";
AsposeData obj = new AsposeData { List = new List<string> { "abc" } };
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.1.docx", obj);
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.2.docx", obj, new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.3.docx", SaveFormat.Docx, obj);
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.4.docx", SaveFormat.Docx, obj, new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
}
public class AsposeData
{
public List<string> List { get; set; }
}
See Also
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(string, string, object, ReportBuilderOptions)
Populates the template document with data from the specified source, generating a completed report with additional options.
public static void BuildReport(string inputFileName, string outputFileName, object data,
ReportBuilderOptions reportBuilderOptions)
Parameter | Type | Description |
---|---|---|
inputFileName | String | The input file name. |
outputFileName | String | The output file name. |
data | Object | A data source object. |
reportBuilderOptions | ReportBuilderOptions | Additional report build options. |
Examples
Shows how to populate document with data.
public void BuildReportData()
{
// There is a several ways to populate document with data:
string doc = MyDir + "Reporting engine template - If greedy.docx";
AsposeData obj = new AsposeData { List = new List<string> { "abc" } };
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.1.docx", obj);
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.2.docx", obj, new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.3.docx", SaveFormat.Docx, obj);
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.4.docx", SaveFormat.Docx, obj, new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
}
public class AsposeData
{
public List<string> List { get; set; }
}
See Also
- class ReportBuilderOptions
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(string, string, SaveFormat, object)
Populates the template document with data from the specified source, generating a completed report with specified output format.
public static void BuildReport(string inputFileName, string outputFileName, SaveFormat saveFormat,
object data)
Parameter | Type | Description |
---|---|---|
inputFileName | String | The input file name. |
outputFileName | String | The output file name. |
saveFormat | SaveFormat | The output’s save format. |
data | Object | A data source object. |
Examples
Shows how to populate document with data.
public void BuildReportData()
{
// There is a several ways to populate document with data:
string doc = MyDir + "Reporting engine template - If greedy.docx";
AsposeData obj = new AsposeData { List = new List<string> { "abc" } };
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.1.docx", obj);
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.2.docx", obj, new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.3.docx", SaveFormat.Docx, obj);
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.4.docx", SaveFormat.Docx, obj, new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
}
public class AsposeData
{
public List<string> List { get; set; }
}
See Also
- enum SaveFormat
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(string, string, SaveFormat, object, ReportBuilderOptions)
Populates the template document with data from the specified source, generating a completed report with specified output format and additional options.
public static void BuildReport(string inputFileName, string outputFileName, SaveFormat saveFormat,
object data, ReportBuilderOptions reportBuilderOptions)
Parameter | Type | Description |
---|---|---|
inputFileName | String | The input file name. |
outputFileName | String | The output file name. |
saveFormat | SaveFormat | The output’s save format. |
data | Object | A data source object. |
reportBuilderOptions | ReportBuilderOptions | Additional report build options. |
Examples
Shows how to populate document with data.
public void BuildReportData()
{
// There is a several ways to populate document with data:
string doc = MyDir + "Reporting engine template - If greedy.docx";
AsposeData obj = new AsposeData { List = new List<string> { "abc" } };
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.1.docx", obj);
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.2.docx", obj, new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.3.docx", SaveFormat.Docx, obj);
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportWithObject.4.docx", SaveFormat.Docx, obj, new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
}
public class AsposeData
{
public List<string> List { get; set; }
}
See Also
- enum SaveFormat
- class ReportBuilderOptions
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(Stream, Stream, SaveFormat, object)
Populates the template document with data from the specified source, generating a completed report from input and output streams.
public static void BuildReport(Stream inputStream, Stream outputStream, SaveFormat saveFormat,
object data)
Parameter | Type | Description |
---|---|---|
inputStream | Stream | The input file stream. |
outputStream | Stream | The output file stream. |
saveFormat | SaveFormat | The output’s save format. |
data | Object | A data source object. |
Examples
Shows how to populate document with data using documents from the stream.
// There is a several ways to populate document with data using documents from the stream:
AsposeData obj = new AsposeData { List = new List<string> { "abc" } };
using (FileStream streamIn = new FileStream(MyDir + "Reporting engine template - If greedy.docx", FileMode.Open, FileAccess.Read))
{
using (FileStream streamOut = new FileStream(ArtifactsDir + "LowCode.BuildReportDataStream.1.docx", FileMode.Create, FileAccess.ReadWrite))
ReportBuilder.BuildReport(streamIn, streamOut, SaveFormat.Docx, obj);
using (FileStream streamOut = new FileStream(ArtifactsDir + "LowCode.BuildReportDataStream.2.docx", FileMode.Create, FileAccess.ReadWrite))
ReportBuilder.BuildReport(streamIn, streamOut, SaveFormat.Docx, obj, new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
}
See Also
- enum SaveFormat
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(Stream, Stream, SaveFormat, object, ReportBuilderOptions)
Populates the template document with data from the specified source, generating a completed report with specified output format and additional options, from input and output streams.
public static void BuildReport(Stream inputStream, Stream outputStream, SaveFormat saveFormat,
object data, ReportBuilderOptions reportBuilderOptions)
Parameter | Type | Description |
---|---|---|
inputStream | Stream | The input file stream. |
outputStream | Stream | The output file stream. |
saveFormat | SaveFormat | The output’s save format. |
data | Object | A data source object. |
reportBuilderOptions | ReportBuilderOptions | Additional report build options. |
Examples
Shows how to populate document with data using documents from the stream.
// There is a several ways to populate document with data using documents from the stream:
AsposeData obj = new AsposeData { List = new List<string> { "abc" } };
using (FileStream streamIn = new FileStream(MyDir + "Reporting engine template - If greedy.docx", FileMode.Open, FileAccess.Read))
{
using (FileStream streamOut = new FileStream(ArtifactsDir + "LowCode.BuildReportDataStream.1.docx", FileMode.Create, FileAccess.ReadWrite))
ReportBuilder.BuildReport(streamIn, streamOut, SaveFormat.Docx, obj);
using (FileStream streamOut = new FileStream(ArtifactsDir + "LowCode.BuildReportDataStream.2.docx", FileMode.Create, FileAccess.ReadWrite))
ReportBuilder.BuildReport(streamIn, streamOut, SaveFormat.Docx, obj, new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
}
See Also
- enum SaveFormat
- class ReportBuilderOptions
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(string, string, object, string)
Populates the template document with data from the specified source, generating a completed report with a named data source reference.
public static void BuildReport(string inputFileName, string outputFileName, object data,
string dataSourceName)
Parameter | Type | Description |
---|---|---|
inputFileName | String | The input file name. |
outputFileName | String | The output file name. |
data | Object | A data source object. |
dataSourceName | String | A name to reference the data source object in the template. |
Examples
Shows how to populate document with data sources.
public void BuildReportDataSource()
{
// There is a several ways to populate document with data sources:
string doc = MyDir + "Report building.docx";
MessageTestClass sender = new MessageTestClass("LINQ Reporting Engine", "Hello World");
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.1.docx", sender, "s");
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.2.docx", new object[] { sender }, new[] { "s" });
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.3.docx", sender, "s", new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.4.docx", SaveFormat.Docx, sender, "s");
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.5.docx", SaveFormat.Docx, sender, "s", new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
}
public class MessageTestClass
{
public string Name { get; set; }
public string Message { get; set; }
public MessageTestClass(string name, string message)
{
Name = name;
Message = message;
}
}
See Also
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(string, string, object, string, ReportBuilderOptions)
Populates the template document with data from the specified source, generating a completed report with a named data source reference and additional options.
public static void BuildReport(string inputFileName, string outputFileName, object data,
string dataSourceName, ReportBuilderOptions reportBuilderOptions)
Parameter | Type | Description |
---|---|---|
inputFileName | String | The input file name. |
outputFileName | String | The output file name. |
data | Object | A data source object. |
dataSourceName | String | A name to reference the data source object in the template. |
reportBuilderOptions | ReportBuilderOptions | Additional report build options. |
Examples
Shows how to populate document with data sources.
public void BuildReportDataSource()
{
// There is a several ways to populate document with data sources:
string doc = MyDir + "Report building.docx";
MessageTestClass sender = new MessageTestClass("LINQ Reporting Engine", "Hello World");
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.1.docx", sender, "s");
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.2.docx", new object[] { sender }, new[] { "s" });
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.3.docx", sender, "s", new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.4.docx", SaveFormat.Docx, sender, "s");
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.5.docx", SaveFormat.Docx, sender, "s", new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
}
public class MessageTestClass
{
public string Name { get; set; }
public string Message { get; set; }
public MessageTestClass(string name, string message)
{
Name = name;
Message = message;
}
}
See Also
- class ReportBuilderOptions
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(string, string, SaveFormat, object, string)
Populates the template document with data from the specified source, generating a completed report with specified output format and a named data source reference.
public static void BuildReport(string inputFileName, string outputFileName, SaveFormat saveFormat,
object data, string dataSourceName)
Parameter | Type | Description |
---|---|---|
inputFileName | String | The input file name. |
outputFileName | String | The output file name. |
saveFormat | SaveFormat | The output’s save format. |
data | Object | A data source object. |
dataSourceName | String | A name to reference the data source object in the template. |
Examples
Shows how to populate document with data sources.
public void BuildReportDataSource()
{
// There is a several ways to populate document with data sources:
string doc = MyDir + "Report building.docx";
MessageTestClass sender = new MessageTestClass("LINQ Reporting Engine", "Hello World");
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.1.docx", sender, "s");
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.2.docx", new object[] { sender }, new[] { "s" });
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.3.docx", sender, "s", new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.4.docx", SaveFormat.Docx, sender, "s");
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.5.docx", SaveFormat.Docx, sender, "s", new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
}
public class MessageTestClass
{
public string Name { get; set; }
public string Message { get; set; }
public MessageTestClass(string name, string message)
{
Name = name;
Message = message;
}
}
See Also
- enum SaveFormat
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(string, string, SaveFormat, object, string, ReportBuilderOptions)
Populates the template document with data from the specified source, generating a completed report with specified output format, a named data source reference, and additional options.
public static void BuildReport(string inputFileName, string outputFileName, SaveFormat saveFormat,
object data, string dataSourceName, ReportBuilderOptions reportBuilderOptions)
Parameter | Type | Description |
---|---|---|
inputFileName | String | The input file name. |
outputFileName | String | The output file name. |
saveFormat | SaveFormat | The output’s save format. |
data | Object | A data source object. |
dataSourceName | String | A name to reference the data source object in the template. |
reportBuilderOptions | ReportBuilderOptions | Additional report build options. |
Examples
Shows how to populate document with data sources.
public void BuildReportDataSource()
{
// There is a several ways to populate document with data sources:
string doc = MyDir + "Report building.docx";
MessageTestClass sender = new MessageTestClass("LINQ Reporting Engine", "Hello World");
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.1.docx", sender, "s");
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.2.docx", new object[] { sender }, new[] { "s" });
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.3.docx", sender, "s", new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.4.docx", SaveFormat.Docx, sender, "s");
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.5.docx", SaveFormat.Docx, sender, "s", new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
}
public class MessageTestClass
{
public string Name { get; set; }
public string Message { get; set; }
public MessageTestClass(string name, string message)
{
Name = name;
Message = message;
}
}
See Also
- enum SaveFormat
- class ReportBuilderOptions
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(Stream, Stream, SaveFormat, object, string)
Populates the template document with data from the specified source, generating a completed report with a named data source reference.
public static void BuildReport(Stream inputStream, Stream outputStream, SaveFormat saveFormat,
object data, string dataSourceName)
Parameter | Type | Description |
---|---|---|
inputStream | Stream | The input file stream. |
outputStream | Stream | The output file stream. |
saveFormat | SaveFormat | The output’s save format. |
data | Object | A data source object. |
dataSourceName | String | A name to reference the data source object in the template. |
Examples
Shows how to populate document with data sources using documents from the stream.
// There is a several ways to populate document with data sources using documents from the stream:
MessageTestClass sender = new MessageTestClass("LINQ Reporting Engine", "Hello World");
using (FileStream streamIn = new FileStream(MyDir + "Report building.docx", FileMode.Open, FileAccess.Read))
{
using (FileStream streamOut = new FileStream(ArtifactsDir + "LowCode.BuildReportDataSourceStream.1.docx", FileMode.Create, FileAccess.ReadWrite))
ReportBuilder.BuildReport(streamIn, streamOut, SaveFormat.Docx, new object[] { sender }, new[] { "s" });
using (FileStream streamOut = new FileStream(ArtifactsDir + "LowCode.BuildReportDataSourceStream.2.docx", FileMode.Create, FileAccess.ReadWrite))
ReportBuilder.BuildReport(streamIn, streamOut, SaveFormat.Docx, sender, "s");
using (FileStream streamOut = new FileStream(ArtifactsDir + "LowCode.BuildReportDataSourceStream.3.docx", FileMode.Create, FileAccess.ReadWrite))
ReportBuilder.BuildReport(streamIn, streamOut, SaveFormat.Docx, sender, "s", new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
}
See Also
- enum SaveFormat
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(Stream, Stream, SaveFormat, object, string, ReportBuilderOptions)
Populates the template document with data from the specified source, generating a completed report with a named data source reference and additional options.
public static void BuildReport(Stream inputStream, Stream outputStream, SaveFormat saveFormat,
object data, string dataSourceName, ReportBuilderOptions reportBuilderOptions)
Parameter | Type | Description |
---|---|---|
inputStream | Stream | The input file stream. |
outputStream | Stream | The output file stream. |
saveFormat | SaveFormat | The output’s save format. |
data | Object | A data source object. |
dataSourceName | String | A name to reference the data source object in the template. |
reportBuilderOptions | ReportBuilderOptions | Additional report build options. |
Examples
Shows how to populate document with data sources using documents from the stream.
// There is a several ways to populate document with data sources using documents from the stream:
MessageTestClass sender = new MessageTestClass("LINQ Reporting Engine", "Hello World");
using (FileStream streamIn = new FileStream(MyDir + "Report building.docx", FileMode.Open, FileAccess.Read))
{
using (FileStream streamOut = new FileStream(ArtifactsDir + "LowCode.BuildReportDataSourceStream.1.docx", FileMode.Create, FileAccess.ReadWrite))
ReportBuilder.BuildReport(streamIn, streamOut, SaveFormat.Docx, new object[] { sender }, new[] { "s" });
using (FileStream streamOut = new FileStream(ArtifactsDir + "LowCode.BuildReportDataSourceStream.2.docx", FileMode.Create, FileAccess.ReadWrite))
ReportBuilder.BuildReport(streamIn, streamOut, SaveFormat.Docx, sender, "s");
using (FileStream streamOut = new FileStream(ArtifactsDir + "LowCode.BuildReportDataSourceStream.3.docx", FileMode.Create, FileAccess.ReadWrite))
ReportBuilder.BuildReport(streamIn, streamOut, SaveFormat.Docx, sender, "s", new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
}
See Also
- enum SaveFormat
- class ReportBuilderOptions
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(string, string, object[], string[])
Populates the template document with data from multiple sources, generating a completed report from the specified input and output file names. This overload automatically determines the save format based on the output file extension.
public static void BuildReport(string inputFileName, string outputFileName, object[] data,
string[] dataSourceNames)
Parameter | Type | Description |
---|---|---|
inputFileName | String | The input file name. |
outputFileName | String | The output file name. |
data | Object[] | An array of data source objects. |
dataSourceNames | String[] | An array of names to reference the data source objects within the template. |
Examples
Shows how to populate document with data sources.
public void BuildReportDataSource()
{
// There is a several ways to populate document with data sources:
string doc = MyDir + "Report building.docx";
MessageTestClass sender = new MessageTestClass("LINQ Reporting Engine", "Hello World");
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.1.docx", sender, "s");
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.2.docx", new object[] { sender }, new[] { "s" });
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.3.docx", sender, "s", new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.4.docx", SaveFormat.Docx, sender, "s");
ReportBuilder.BuildReport(doc, ArtifactsDir + "LowCode.BuildReportDataSource.5.docx", SaveFormat.Docx, sender, "s", new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
}
public class MessageTestClass
{
public string Name { get; set; }
public string Message { get; set; }
public MessageTestClass(string name, string message)
{
Name = name;
Message = message;
}
}
See Also
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(string, string, object[], string[], ReportBuilderOptions)
Populates the template document with data from multiple sources, generating a completed report with additional options. This overload automatically determines the save format based on the output file extension.
public static void BuildReport(string inputFileName, string outputFileName, object[] data,
string[] dataSourceNames, ReportBuilderOptions reportBuilderOptions)
Parameter | Type | Description |
---|---|---|
inputFileName | String | The input file name. |
outputFileName | String | The output file name. |
data | Object[] | An array of data source objects. |
dataSourceNames | String[] | An array of names to reference the data source objects within the template. |
reportBuilderOptions | ReportBuilderOptions | Additional report build options. |
See Also
- class ReportBuilderOptions
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(string, string, SaveFormat, object[], string[])
Populates the template document with data from multiple sources, generating a completed report with a specified output format. This overload automatically determines the save format based on the output file extension.
public static void BuildReport(string inputFileName, string outputFileName, SaveFormat saveFormat,
object[] data, string[] dataSourceNames)
Parameter | Type | Description |
---|---|---|
inputFileName | String | The input file name. |
outputFileName | String | The output file name. |
saveFormat | SaveFormat | The output’s save format. |
data | Object[] | An array of data source objects. |
dataSourceNames | String[] | An array of names to reference the data source objects within the template. |
See Also
- enum SaveFormat
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(string, string, SaveFormat, object[], string[], ReportBuilderOptions)
Populates the template document with data from multiple sources, generating a completed report with a specified output format and additional options.
public static void BuildReport(string inputFileName, string outputFileName, SaveFormat saveFormat,
object[] data, string[] dataSourceNames, ReportBuilderOptions reportBuilderOptions)
Parameter | Type | Description |
---|---|---|
inputFileName | String | The input file name. |
outputFileName | String | The output file name. |
saveFormat | SaveFormat | The output’s save format. |
data | Object[] | An array of data source objects. |
dataSourceNames | String[] | An array of names to reference the data source objects within the template. |
reportBuilderOptions | ReportBuilderOptions | Additional report build options. |
See Also
- enum SaveFormat
- class ReportBuilderOptions
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(Stream, Stream, SaveFormat, object[], string[])
Populates the template document with data from multiple sources, generating a completed report from the specified input and output file streams.
public static void BuildReport(Stream inputStream, Stream outputStream, SaveFormat saveFormat,
object[] data, string[] dataSourceNames)
Parameter | Type | Description |
---|---|---|
inputStream | Stream | The input file stream. |
outputStream | Stream | The output file stream. |
saveFormat | SaveFormat | The output’s save format. |
data | Object[] | An array of data source objects. |
dataSourceNames | String[] | An array of names to reference the data source objects within the template. |
Examples
Shows how to populate document with data sources using documents from the stream.
// There is a several ways to populate document with data sources using documents from the stream:
MessageTestClass sender = new MessageTestClass("LINQ Reporting Engine", "Hello World");
using (FileStream streamIn = new FileStream(MyDir + "Report building.docx", FileMode.Open, FileAccess.Read))
{
using (FileStream streamOut = new FileStream(ArtifactsDir + "LowCode.BuildReportDataSourceStream.1.docx", FileMode.Create, FileAccess.ReadWrite))
ReportBuilder.BuildReport(streamIn, streamOut, SaveFormat.Docx, new object[] { sender }, new[] { "s" });
using (FileStream streamOut = new FileStream(ArtifactsDir + "LowCode.BuildReportDataSourceStream.2.docx", FileMode.Create, FileAccess.ReadWrite))
ReportBuilder.BuildReport(streamIn, streamOut, SaveFormat.Docx, sender, "s");
using (FileStream streamOut = new FileStream(ArtifactsDir + "LowCode.BuildReportDataSourceStream.3.docx", FileMode.Create, FileAccess.ReadWrite))
ReportBuilder.BuildReport(streamIn, streamOut, SaveFormat.Docx, sender, "s", new ReportBuilderOptions() { Options = ReportBuildOptions.AllowMissingMembers });
}
See Also
- enum SaveFormat
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words
BuildReport(Stream, Stream, SaveFormat, object[], string[], ReportBuilderOptions)
Populates the template document with data from multiple sources, generating a completed report with specified output format and additional options from the specified input and output file streams.
public static void BuildReport(Stream inputStream, Stream outputStream, SaveFormat saveFormat,
object[] data, string[] dataSourceNames, ReportBuilderOptions reportBuilderOptions)
Parameter | Type | Description |
---|---|---|
inputStream | Stream | The input file stream. |
outputStream | Stream | The output file stream. |
saveFormat | SaveFormat | The output’s save format. |
data | Object[] | An array of data source objects. |
dataSourceNames | String[] | An array of names to reference the data source objects within the template. |
reportBuilderOptions | ReportBuilderOptions | Additional report build options. |
See Also
- enum SaveFormat
- class ReportBuilderOptions
- class ReportBuilder
- namespace Aspose.Words.LowCode
- assembly Aspose.Words