1
0
mirror of https://github.com/php/doc-ja.git synced 2026-03-26 16:12:17 +01:00
Files
archived-doc-ja/reference/printer/functions/printer-open.xml
TAKAGI Masahiro 3a6f193d7f sync with en.
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@299142 c90b9560-bf6c-de11-be94-00142212c4b1
2010-05-08 10:40:30 +00:00

91 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: hirokawa Status: ready -->
<!-- CREDITS: takagi -->
<refentry xml:id="function.printer-open" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>printer_open</refname>
<refpurpose>プリンタへの接続をオープンする</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>resource</type><methodname>printer_open</methodname>
<methodparam choice="opt"><type>string</type><parameter>printername</parameter></methodparam>
</methodsynopsis>
<para>
この関数は、指定したプリンタへの接続を試みます。
</para>
<para>
<function>printer_open</function> は、
デバイスコンテキストも開始します。
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>printername</parameter></term>
<listitem>
<para>
プリンタ名。このパラメータが指定されない場合、
この関数はデフォルトのプリンタへの接続をオープンします(&php.ini;
<literal>printer.default_printer</literal> として指定されていない場合は、
PHP はデフォルトのプリンタの検出を試みます)。
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
成功時にハンドルを返します。&return.falseforfailure;
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>printer_open</function> の例</title>
<programlisting role="php">
<![CDATA[
<?php
$handle = printer_open("HP Deskjet 930c");
$handle = printer_open();
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->