<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум компьютерной помощи &mdash; Измение шрифта в поле.]]></title>
	<link rel="self" href="https://itpmr.ru/extern.php?action=feed&amp;tid=771&amp;type=atom" />
	<updated>2013-03-22T09:32:35Z</updated>
	<generator>PunBB</generator>
	<id>https://itpmr.ru/viewtopic.php?id=771</id>
		<entry>
			<title type="html"><![CDATA[Измение шрифта в поле.]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123857#p123857" />
			<content type="html"><![CDATA[<p>Почему-то не работает этот лотус скрипт:</p><p>Sub Click(Source As Button)<br />&nbsp; &nbsp; Dim session As New NotesSession<br />&nbsp; &nbsp; Dim uiworkspace As New NotesUIWorkspace&nbsp; &nbsp; <br />&nbsp; &nbsp; Dim db As NotesDatabase<br />&nbsp; &nbsp; Set db =&nbsp; session.CurrentDatabase<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; Dim UIDoc As NotesUIDocument<br />&nbsp; &nbsp; Set UIDoc = uiworkspace.CurrentDocument<br />&nbsp; &nbsp; Dim doc As NotesDocument<br />&nbsp; &nbsp; Set doc = UIDoc.Document<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; Dim body As NotesRichTextItem<br />&nbsp; &nbsp; Dim rtnavBody As NotesRichTextNavigator &#039; навигация по полю<br />&nbsp; &nbsp; Dim rtrangeTable As NotesRichTextRange <br />&nbsp; &nbsp; Dim style As NotesRichTextStyle<br />&nbsp; &nbsp; Set body = doc.GetFirstItem(&quot;СОДЕРЖАНИЕ_&quot;)<br />&nbsp; &nbsp; Set rtnavBody = body.CreateNavigator &#039; не получаем знаечние<br />&nbsp; &nbsp; Set rtrangeTable = body.CreateRange<br />&nbsp; &nbsp; Call&nbsp; &nbsp; rtrangeTable.SetBegin(rtnavBody)<br />&nbsp; &nbsp; Call rtrangeTable.SetEnd(rtnavBody)<br />&nbsp; &nbsp; REM Create style<br />&nbsp; &nbsp; Set style = session.CreateRichTextStyle<br />&nbsp; &nbsp; style.NotesFont = FONT_ROMAN<br />&nbsp; REM Set table to blue<br />&nbsp; &nbsp; Call rtrangeTable.SetStyle(style)<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; Call doc.Save (True, False)&nbsp; &nbsp; <br />&nbsp; &nbsp; Call UIDoc.Close&nbsp; &nbsp; <br />&nbsp; &nbsp; Call uiworkspace.EditDocument(False, doc)<br />End Sub</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2013-03-22T09:32:35Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123857#p123857</id>
		</entry>
</feed>
