When I’m converting particular range using ImageOrPrintOptions I’m facing there is some extra data is appear in it.
Here is my code snippets and file for reference.
I evaluated your scenario/case using your template Excel file and code snippet. I checked your template Excel file and found the option “Rows to repeat at top” in “Page Setup|Sheet” tab is set to “$3:$9”. That’s why when you render the range to image, those rows data is rendered at the top as well. You need to remove the value for the option. Please add a line (in bold) to your code segment. I have tested by adding the line and it works fine and as expected.
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.