We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Inserting a Backgroundimage for the entire word document, but only for the first page. How ?

Inserting a Backgroundimage for the entire word document, but only for the first page. How ?

1 Reply

AK Ayswarya Krishna Kumar Syncfusion Team October 25, 2016 09:14 AM UTC

Hi Customer,

Thank you for contacting Syncfusion support.

We have prepared a sample to meet your requirement, of inserting background image to the first page of the Word document. We have achieved your requirement with the following steps.

(1) Adds new section to the word document.
(2) Enabled DifferentFirstPage boolean flag in order to have different first page header.
(3) Appends the picture to the first page header paragraph.
(4) To make the image filled the entire page, set the height and width of the picture to page height and width respectively
(5) Set the horizontal origin of the picture to page’s left margin and vertical origin of the picture to page’s top margin.

We have attached the sample for your reference. Try running the sample and let us know whether it helps you?

Sample link:
http://www.syncfusion.com/downloads/support/forum/127062/ze/GenerateWord1271358336.zip

Regards,
Ayswarya


Loader.
Up arrow icon