-
Notifications
You must be signed in to change notification settings - Fork 6
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
base: master
Are you sure you want to change the base?
Conversation
|
||
import java.io.FileInputStream; | ||
import com.syncfusion.docio.*; | ||
import com.syncfusion.javahelper.system.ObjectSupport; |
There was a problem hiding this comment.
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."); |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
Kindly review the below changes and let me know your feedbacks.