<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: Печать XLS-файлов с задаными полями страницы]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11219&amp;type=atom" />
	<updated>2016-01-14T09:53:14Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11219</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Печать XLS-файлов с задаными полями страницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100336#p100336" />
			<content type="html"><![CDATA[<p>Конечно можно задать поля</p><div class="codebox"><pre><code>With objXL.ActiveSheet.PageSetup
    .LeftMargin = 0
    .RightMargin = 0
    .TopMargin = 0
    .BottomMargin = 0
End With
</code></pre></div><p>Еще можно &quot;вписать лист на 1 страницу&quot;</p><div class="codebox"><pre><code>With objXL.ActiveSheet.PageSetup
    .Zoom = False
    .FitToPagesWide = 1
    .FitToPagesTall = 1
End With</code></pre></div>]]></content>
			<author>
				<name><![CDATA[mozers]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=4112</uri>
			</author>
			<updated>2016-01-14T09:53:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100336#p100336</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: Печать XLS-файлов с задаными полями страницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100301#p100301" />
			<content type="html"><![CDATA[<p>Имеется рабочий скрипт для печати файлов из папки. Проблема в том, что при печати документ разбивается на 2 листа из-за того, что в Excel по умолчанию стоят слишком большие поля страницы. Установка по умолчанию меньшего значения полей не помогла т.к. она актуальна только для новых документов. <br />Можно ли в самом скрипте жестко прописать значения полей страницы? Другие варианты решение проблемы также принимаются.<br />Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[request4t]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33599</uri>
			</author>
			<updated>2016-01-13T11:13:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100301#p100301</id>
		</entry>
</feed>
