Problems with positioning fields in Word template.
I have a Word template (.dotx). In this template I have in the header of the second page a default barcode (in a table), which I want to replace with the real barcode I generate with Aspose Barcode for this item. How can I replace this barcode?
I also want to insert a new table on the second page, on a specific place on the page. I succeeded to insert the table after a new section, but I want to place it after a specific (Merge)Field or something like that. How can I position the cursor? I cann't position the cursor with MoveToField.
I will sent the java class, the input template and the created document with this message.
I have a Word template (.dotx). In this template I have in the header of the second page a default barcode (in a table), which I want to replace with the real barcode I generate with Aspose Barcode for this item. How can I replace this barcode?
Please try run the following code snippet, this replaces your sample BarCode image with another Image.
Document doc = new Document("C:\\Temp\\TestFormulier.dotx");
DocumentBuilder builder = new DocumentBuilder(doc);
I also want to insert a new table on the second page, on a specific place on the page. I succeeded to insert the table after a new section, but I want to place it after a specific (Merge)Field or something like that. How can I position the cursor? I cann’t position the cursor with MoveToField.
I believe, you can achieve this after reading the article suggested below:
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.