Thanks For your continous support & suggestions.
I am facing one problem while creating table with the help of HTML tags using documentBuilder.InsertHTML() method.
I am using Aspose.word version 220.127.116.11
While creating the table with the help of HTML tags i cannot be able to add left / right indent to it.
Is there any way by using which i will be able to add the left & right indent to my HTML formatted table?
The sample code is as follows.
private void button22_Click(object sender, EventArgs e)
string path = Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath);
//Initialize Aspose license.
Aspose.Words.License lic = new Aspose.Words.License();
lic.SetLicense(path + @"\Aspose.Total.lic");
Aspose.Pdf.License lic1 = new Aspose.Pdf.License();
lic1.SetLicense(path + @"\Aspose.Total.lic");
Document doc = new Document();
DocumentBuilder documentBuilder = new DocumentBuilder(doc);
//set the page set-up
PageSetup pageSetup = documentBuilder.CurrentSection.PageSetup;
//go to document end.
//set the page size.
pageSetup.PaperSize = PaperSize.A4;
//apply margins for page.
pageSetup.LeftMargin = 75;
pageSetup.RightMargin = 75;
pageSetup.TopMargin = 75;
pageSetup.BottomMargin = 75;
string strSample = "The demolition of the Babri mosque was planned to the last detail and Justice M.S. Liberhan, who probed the matter, was told so, former BJP member of Parliament Ram Vilas Vedanti has said.Vedanti, one of the 68 people to be indicted by the Liberhan panel, said he supervised the demolition.Hang me if you can. I stick to my words,” Vedanti, also a member of the Ram Janambhoomi Nyaas, told a gathering at the local headquarters of the Vishwa Hindu Parishad. Saffron leaders were in Karsewakpuram to mark the 17th anniversary of the demolition.";
documentBuilder.ParagraphFormat.LeftIndent = 20;
string strHTMLTable = "
|This is a cell||This is a cell|
|This is the new row||I'm on the new row, too!|
|Row with image|
Please refer the attached Word document for further reference.
If you go though the attached document & sample code carefully you will find that there is page margin implemented for entire page. Which also get applied for table object.
I want to add left indent to my HTML formatted table so that my total table margin from origional page is
total mrgin = page margin + table left indent.
this indent value is given by user
I dont want my table directly get aligned to left,right or central.
1> Is there any way by which i will be able to achive above mentioned functionality?
2> Is there any HTML tag that will help us to add the indentation while creating HTML table ?
Waiting for your reply.....!!!!!
Thanks & Regards,