Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Last active April 10, 2019 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GroupDocsGists/ba66cecb1eacc47b0a6dd18867c3dc04 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/ba66cecb1eacc47b0a6dd18867c3dc04 to your computer and use it in GitHub Desktop.
GroupDocs.Assembly Inline Error Messages
// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-.NET
DocumentAssembler assembler = new DocumentAssembler();
// Set options
assembler.Options |= DocumentAssemblyOptions.InlineErrorMessages;
// Assemble document
if (assembler.AssembleDocument (...))
{
// Do something with a successfully built report.
}
else
{
// Do something with a report containing a template syntax error.
}
// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java
DocumentAssembler assembler= new DocumentAssembler();
// Set options
assembler.setOptions(DocumentAssemblyOptions.INLINE_ERROR_MESSAGES);
// Assemble document
if (assembler.assembleDocument (...))
{
// Do something with a successfully built report.
}
else
{
// Do something with a report containing a template syntax error.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment