We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Need help to set Tab stop :

Hi
I am trying to set manual tab stop for each paragraph in Document? How do i need to do this ? Can you provide me some example to set tab stop in Document . I am using Aspose.words.java latest version .

Thanks

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Please try using the following code:

// Create TabStop

TabStop tab = new TabStop(100);

// Set TabStop

paragraph.getParagraphFormat().getTabStops().add(tab);

Also please follow the link to learn more:

http://www.aspose.com/documentation/java-components/aspose.words-for-java/com/aspose/words/tabstopcollection.html

Best regards,

Hi
Thanks for your reply. From above example ,In converted document i can see tab stop in MSWord ruler at 1.5 inch . I just need to bring below like format in document. Is it possible ? I just gone through manual but it couldn help me

For ex :

Name : Aspose
Age : 10

Please do help me .

thanks

Hi Anbu,

Thanks for your inquiry. I believe Andrey's code above does provide the basis for doing this. Remember you need the tab character (ControlChar.Tab) for the text to be lined up with the next tabstop.

Could you please provide us with some more information, prehapes a document which samples what you would like to achieve.

Thanks,