Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GettingStarted and GenerateOrderDetails examples #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

SuriyaBalamurugan
Copy link

Kindly review the below changes and let me know your feedbacks.


import java.io.FileInputStream;
import com.syncfusion.docio.*;
import com.syncfusion.javahelper.system.ObjectSupport;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove imports and optimize these lines

//Save the document in the given name and format.
document.save("Sample.docx", FormatType.Docx);
//Release the resources occupied by the WordDocument instance.
System.out.println("Word document generated successfully.");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please dispose the WordDocument instance

* @exception XmlException Unexpected xml tag + reader.LocalName
*/
private static MailMergeDataTable getMailMergeDataTable() throws Exception {
// Gets the employee details implicit as "IEnumerable" collection.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please modify the comment as requirement

* Gets the mail merge data table.
*
* @return
* @exception System.Exception reader

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove these from all methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants