form:push-buttonサンプル1
push-buttonクリック時に印刷ダイアログを表示するサンプルです。
form:push-buttonサンプル1
(『<biz-Stream_home>/sample/xml/form_push-button/form_push-buttonSample1.xml
』)
<?xml version="1.0" encoding="UTF-8"?> <!-- XML file created by biz-Stream Designer --> <!-- biz-Stream Copyright BrainSellers.com Corp. --> <Layout Name="formpushbuttonSample1" Width="120" Height="90" X="10" Y="10" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:bs="http://www.brainsellers.com/schema" xmlns:svg="http://www.brainsellers.com/schema" xmlns:form="http://www.brainsellers.com/schema" xmlns:pdf="http://www.brainsellers.com/schema" version="5.0.0"> <Square Width="75" Height="48" X="8" Y="11" LineColor="14,0,176" LineStyle="Solid"/> <!-- formtext --> <Label Width="25" Height="5" Y="48" Horizon="right" Vertical="center" Vector="horizon" Font="MSGothic" FontStyle="BOLD" Narrow="horizon">ID</Label> <form:text name="id" x="28" y="48" width="50" height="5" font-family="MSGothic" border-color="0,0,0" border-width="normal" border-style="solid" text-align="left" hidden="false" print="true" read-only="false" scroll="true" multi-line="false"/> <!-- formpassword --> <Label Width="25" Height="5" Y="38" Horizon="right" Vertical="center" Vector="horizon" Font="MSGothic" FontStyle="BOLD" Narrow="horizon">パスワード</Label> <form:password name="password" x="28" y="38" width="50" height="5" font-family="MSGothic" border-color="0,0,0" border-width="normal" border-style="solid" text-align="left" hidden="false" print="true" read-only="false"/> <!-- サブミットボタン --> <form:submit-button name="submit1" x="28" y="25" width="50" height="8" font-family="MSGothic" border-width="normal" border-style="solid" background-color="204,204,204" hidden="false" print="true" read-only="false" method="POST" format="XML" uri="mailto:technical@brainsellers.com">メールでデータを送信</form:submit-button> <!-- 印刷ボタン --> <form:push-button name="push1" x="28" y="15" width="50" height="8" font-family="MSGothic" border-width="normal" border-style="solid" background-color="230,230,250" hidden="false" print="true" read-only="false"><form:javascript action="mouse-down">this.print(true, this.pageNum, this.pageNum); </form:javascript> 印刷 </form:push-button> </Layout>
生成されるPDF(『<biz-Stream_home>/sample/xml/form_push-button/form_push-buttonSample1.pdf
』)
