Hi Siva,
Thanks for your inquiry. I used the following code:
Document document = new Document();
DocumentBuilder builder = new DocumentBuilder(document);
builder.getFont().setLocaleId(1033);
ParagraphFormat paragraphFormat =
builder.getParagraphFormat();
paragraphFormat.getTabStops().add(288,
TabAlignment.LEFT, TabLeader.NONE);
builder.writeln("Source:" + ControlChar.TAB
+ "Name");
builder.insertParagraph();
paragraphFormat =
builder.getParagraphFormat();
paragraphFormat.clearFormatting();
paragraphFormat.getTabStops().add(396,
TabAlignment.LEFT, TabLeader.NONE);
builder.writeln("Source:" + ControlChar.TAB
+ "Name");
document.save("C://test//CreateSimpleTabDoc.doc");
Moreover, I have attached the generated document here for your reference. Please let us know if we can be of any further assistance.
Best Regards,
Awais Hafeez
Support Developer
Aspose Sialkot Team
Aspose - Your File Format Experts
Keep in touch! We're on
Twitter and
Facebook