<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: When you have a background image, how do you remove borders from odstext in ods pdf? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/When-you-have-a-background-image-how-do-you-remove-borders-from/m-p/605226#M23518</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This worked for me:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="change_cellspacing.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34069iD28B8FD69F3A5D5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="change_cellspacing.png" alt="change_cellspacing.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I changed from STYLE with a FROM to CLASS for everything. If a style element does not exist with the name you pick, then CLASS makes it. You didn't really need style body from body -- so I changed that to CLASS too because if a style element does exist, then CLASS implies a FROM for the same named element.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I always use an ODS PATH statement, so I added that, you may always plan to run the template "in-stream" in which case, it will be added to sasuser.templat...but I prefer to put my test templates in WORK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Finally, cellspacing=0 is one quick way to remove borders because it tells ODS to format the cell walls around your cell (in this case, your paragraph text) with a spacing value of 0, which generally is one way to get rid of the borders. It is simpler, in this case, with a new style element, which must have inherited from a style element with the default cellspacing of 7.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2019 22:07:04 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-11-18T22:07:04Z</dc:date>
    <item>
      <title>When you have a background image, how do you remove borders from odstext in ods pdf?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/When-you-have-a-background-image-how-do-you-remove-borders-from/m-p/605189#M23516</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the following code with the &lt;EM&gt;style body from body&lt;/EM&gt; statement (inserting a background image), it puts borders around my paragraph ods text. I do not want borders around any text. I've tried putting borderstyle=hidden, borderwidth=0pt, bordercolor=white, etc. into the body statement and into the paragraph style statement to no avail. I tried the &lt;EM&gt;style usertext from usertext&lt;/EM&gt; approach to removing borders with no avail. Yet, when you run the following code without the &lt;EM&gt;style body from body&lt;/EM&gt; statement, there are no borders on the odstext. Why is this happening, and how can I simultaneously have no borders around text and still have a background image?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
ods noresults;
ods escapechar="^";
Options orientation=portrait	
	papersize=letter
	nodate nonumber
	topmargin = 0.25in
	bottommargin = 0.25in
	leftmargin = 0.25in
	rightmargin = 0.25in;


proc template;
	define style Styles.mystyle;
	parent = Styles.Pearl;

	/* Adding a background image keeps adding borders to the paragraph ods text? */
	style body from body /
			backgroundimage="C:\...\.png?height=3cm";
       /* But if you comment out the above code, the borders go away */

	style myheader /
		foreground=red fontsize=14pt fontweight=bold fontfamily="Calibri";
	style myparagraph /
		foreground=black fontsize=12pt fontfamily="Times Roman";
	end;
run;


ods pdf file="C\...\testpdf.pdf"
	accessible
	style=Styles.mystyle;
	ods layout absolute;
		ods region y=1in;
		proc odstext;
			H "My Header Here" /
				style=myheader;
		run;
		proc odstext;
			P "My paragraph here" /
				style=myparagraph;
		run;
	ods layout end;
ods pdf close;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 20:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/When-you-have-a-background-image-how-do-you-remove-borders-from/m-p/605189#M23516</guid>
      <dc:creator>formerRuser</dc:creator>
      <dc:date>2019-11-18T20:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: When you have a background image, how do you remove borders from odstext in ods pdf?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/When-you-have-a-background-image-how-do-you-remove-borders-from/m-p/605226#M23518</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This worked for me:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="change_cellspacing.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34069iD28B8FD69F3A5D5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="change_cellspacing.png" alt="change_cellspacing.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I changed from STYLE with a FROM to CLASS for everything. If a style element does not exist with the name you pick, then CLASS makes it. You didn't really need style body from body -- so I changed that to CLASS too because if a style element does exist, then CLASS implies a FROM for the same named element.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I always use an ODS PATH statement, so I added that, you may always plan to run the template "in-stream" in which case, it will be added to sasuser.templat...but I prefer to put my test templates in WORK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Finally, cellspacing=0 is one quick way to remove borders because it tells ODS to format the cell walls around your cell (in this case, your paragraph text) with a spacing value of 0, which generally is one way to get rid of the borders. It is simpler, in this case, with a new style element, which must have inherited from a style element with the default cellspacing of 7.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 22:07:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/When-you-have-a-background-image-how-do-you-remove-borders-from/m-p/605226#M23518</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-11-18T22:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: When you have a background image, how do you remove borders from odstext in ods pdf?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/When-you-have-a-background-image-how-do-you-remove-borders-from/m-p/605239#M23519</link>
      <description>&lt;P&gt;Thank you, Cynthia! This solved my problem.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 22:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/When-you-have-a-background-image-how-do-you-remove-borders-from/m-p/605239#M23519</guid>
      <dc:creator>formerRuser</dc:creator>
      <dc:date>2019-11-18T22:51:37Z</dc:date>
    </item>
  </channel>
</rss>

