⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 howto send raw data to a printer by using the win32 api.htm

📁 Parallel Port description of the communication port
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0083)http://support.microsoft.com/default.aspx?scid=kb;en-us;Q138594&ID=kb;en-us;Q138594 -->
<HTML><HEAD><TITLE>HOWTO: Send Raw Data to a Printer by Using the Win32 API</TITLE><!-- (c) 2001, Microsoft Corporation. All Rights Reserved --><!-- ASM: GSS, Version=3.0.38.1, Culture=neutral, PublicKeyToken=null FW: 1.0.3427.0 --><!-- REGC: ISO-8859-1 DEFRC: iso-8859-1 RESG: 2/14/2002 12:12:10 AM RESX: 2/14/2002 12:15:10 AM -->
<META 
content="Microsoft, product, support, software, hardware, FAQ, FAQs, KB, Knowledge, Base, search, downloads, chat, help, training, phone, troubleshooters, newsgroups" 
name=Keywords>
<META 
content="Microsoft Global Product Support Site, featuring access to a searchable Knowledgebase, Software and Hardware FAQs (Frequently Asked Questions), Online Training, Webcasts, Downloads, HTML Newsgroup views, Telephone Support Information, Online Support Requests and Personalization, Online Assistance, Remote Administration, Hot Issues, Support Center" 
name=Description>
<SCRIPT 
language=Javascript>var g_gssCookieDomain = "support.microsoft.com";</SCRIPT>

<SCRIPT language=Javascript 
src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/gssmethods.js"></SCRIPT>
<LINK 
href="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/style-msie4.css" 
rel=stylesheet type=text/css></LINK><!-- CC: ISO-8859-1 -->
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3315.2870" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginwidth="0" 
marginheight="0"><IMG name=metrixgif 
src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/support.microsoft[1]" 
style="DISPLAY: none">
<SCRIPT>var sUrl = "http://207.46.130.149/trans_pixel.asp?TYPE=GSS&SOURCE=SUPPORT&URI=/gn/EN-GB/INTL/kb_en-us_Q138594/en-gb/Content&r=";gss_fixMetrixUrl();</SCRIPT>
 
<TABLE border=0 cellPadding=0 cellSpacing=0 height="100%" width="100%">
  <TBODY>
  <TR>
    <TD class=noprint colSpan=2 height=60>
      <DIV id=tbspacer style="DISPLAY: none"><IMG height=60 
      src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/1ptrans.gif" 
      width=1></DIV>
      <DIV id=tbdownlevel>
      <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
        <TBODY>
        <TR>
          <TD bgColor=#003399 rowSpan=2><A 
            href="http://support.microsoft.com/default.aspx" target=_top><IMG 
            alt="Microsoft Home" border=0 height=60 hspace=0 
            src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/banner.gif" 
            width=300></A></TD>
          <TD align=right bgColor=#003399 height=20 vAlign=top width="100%">
            <TABLE border=0 cellPadding=0 cellSpacing=0>
              <TBODY>
              <TR>
                <TD><IMG alt="" border=0 height=20 
                  src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/curve_003399.gif" 
                  width=18></TD>
                <TD bgColor=#000000 height=20 vAlign=center><FONT 
                  color=#ffffff face="Verdana, Arial" size=1>&nbsp;&nbsp;<A 
                  class=bartext 
                  href="http://support.microsoft.com/isapi/gomscom.asp?target=/catalog/default.asp?subid=21" 
                  target=_top><FONT color=#ffffff> All 
                  Products</FONT></A>&nbsp;&nbsp; |&nbsp;&nbsp;<A class=bartext 
                  href="http://support.microsoft.com/isapi/gomscom.asp?target=/uk/support/" 
                  target=_top><FONT color=#ffffff> 
                  Support</FONT></A>&nbsp;&nbsp; |&nbsp;&nbsp;<A class=bartext 
                  href="http://support.microsoft.com/isapi/gosearch.asp?target=/uk/" 
                  target=_top><FONT color=#ffffff> Search</FONT></A>&nbsp;&nbsp; 
                  |&nbsp;&nbsp;<A class=bartext 
                  href="http://support.microsoft.com/isapi/gomscom.asp?target=/uk/" 
                  target=_top><FONT color=#ffffff> Microsoft UK 
                  Guide</FONT></A>&nbsp;&nbsp; </FONT></TD></TR></TBODY></TABLE></TD></TR>
        <TR>
          <TD align=right bgColor=#3366cc height=40><A 
            href="http://www.microsoft.com/"><IMG alt="Microsoft.com Home Page" 
            border=0 hspace=0 
            src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/mslogo_3366CC.gif"></A></TD></TR></TBODY></TABLE></DIV>
    <TD></TD>
  <TR>
    <TD class=noprint colSpan=2 height=18 width="100%">
      <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
        <TBODY>
        <TR>
          <TD class=bannerborder-top><IMG height=2 
            src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/1ptrans.gif" 
            width=1></TD>
          <TD class=bannerborder-top><IMG height=2 
            src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/1ptrans.gif" 
            width=1></TD></TR>
        <TR>
          <TD class=barblack>
            <TABLE border=0 cellPadding=0 cellSpacing=0 class=funcmenutbl 
            height=18>
              <TBODY>
              <TR>
                <TD class=buttonleft noWrap 
                onclick="top.location.href='/default.aspx'" 
                onmouseout='this.style.backgroundColor = "";this.style.cursor="default";' 
                onmouseover='this.style.backgroundColor = "#3366CC";this.style.cursor="hand";'><A 
                  class=bartext href="http://support.microsoft.com/default.aspx" 
                  title="Return to Support Home Page">&nbsp;&nbsp;Home&nbsp;&nbsp;</A></TD>
                <TD class=bannerborder width=1><IMG height=1 
                  src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/1ptrans.gif" 
                  width=1></TD>
                <TD class=buttonleft noWrap 
                onclick="top.location.href='/default.aspx?scid=%2fisapi%2fgomscom.asp%3ftarget%3d%2fuk%2fpiracy%2f'" 
                onmouseout='this.style.backgroundColor = "";this.style.cursor="default";' 
                onmouseover='this.style.backgroundColor = "#3366CC";this.style.cursor="hand";'><A 
                  class=bartext 
                  href="http://support.microsoft.com/default.aspx?scid=%2fisapi%2fgomscom.asp%3ftarget%3d%2fuk%2fpiracy%2f" 
                  title="Software Piracy">&nbsp;&nbsp;Software 
                  Piracy&nbsp;&nbsp;</A></TD>
                <TD class=bannerborder width=1><IMG height=1 
                  src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/1ptrans.gif" 
                  width=1></TD>
                <TD class=buttonleft noWrap 
                onclick="top.location.href='/default.aspx?scid=%2fisapi%2fgoregwiz.asp%3ftarget%3d%2fregsys%2fpic.asp%3flcid%3d2057'" 
                onmouseout='this.style.backgroundColor = "";this.style.cursor="default";' 
                onmouseover='this.style.backgroundColor = "#3366CC";this.style.cursor="hand";'><A 
                  class=bartext 
                  href="http://support.microsoft.com/default.aspx?scid=%2fisapi%2fgoregwiz.asp%3ftarget%3d%2fregsys%2fpic.asp%3flcid%3d2057" 
                  title=Subscribe>&nbsp;&nbsp;Subscribe&nbsp;&nbsp;</A></TD>
                <TD class=bannerborder width=1><IMG height=1 
                  src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/1ptrans.gif" 
                  width=1></TD>
                <TD class=buttonleft noWrap 
                onclick="top.location.href='/default.aspx?scid=/directory/worldwide/en-gb/contact/contact_us_overview.asp'" 
                onmouseout='this.style.backgroundColor = "";this.style.cursor="default";' 
                onmouseover='this.style.backgroundColor = "#3366CC";this.style.cursor="hand";'><A 
                  class=bartext 
                  href="http://support.microsoft.com/default.aspx?scid=/directory/worldwide/en-gb/contact/contact_us_overview.asp" 
                  title="Provide feedback to Microsoft">&nbsp;&nbsp;Contact 
                  Us&nbsp;&nbsp;</A></TD>
                <TD class=bannerborder width=1><IMG height=1 
                  src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/1ptrans.gif" 
                  width=1></TD></TR></TBODY></TABLE></TD>
          <TD align=right class=barblack>
            <TABLE border=0 cellPadding=0 cellSpacing=0 class=funcmenutbl>
              <TBODY>
              <TR>
                <TD class=bannerborder width=1><IMG height=1 
                  src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/1ptrans.gif" 
                  width=1></TD>
                <TD class=buttonright 
                onmouseout='this.style.backgroundColor = "";this.style.cursor="default";' 
                onmouseover='this.style.backgroundColor = "#3366CC";this.style.cursor="hand";'>
                  <TABLE border=0 cellPadding=0 cellSpacing=0>
                    <TBODY>
                    <TR>
                      <TD onclick="">&nbsp;&nbsp;</TD>
                      <TD><A class=buttontext 
                        href="mailto:?body=http://support.microsoft.com/default.aspx?scid=kb;en-us;Q138594&amp;ID=kb;en-us;Q138594" 
                        onclick="" 
                        title="Send the contents of this page to a Friend">Send</A></TD>
                      <TD onclick="">&nbsp;</TD>
                      <TD onclick=""><IMG border=0 hspace=0 
                        src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/send_icon.gif"></TD>
                      <TD onclick="">&nbsp;&nbsp;</TD></TR></TBODY></TABLE></TD>
                <TD class=bannerborder width=1><IMG height=1 
                  src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/1ptrans.gif" 
                  width=1></TD>
                <TD class=buttonright 
                onmouseout='this.style.backgroundColor = "";this.style.cursor="default";' 
                onmouseover='this.style.backgroundColor = "#3366CC";this.style.cursor="hand";'>
                  <TABLE border=0 cellPadding=0 cellSpacing=0>
                    <TBODY>
                    <TR>
                      <TD 
                      onclick="if(document.getElementById) PrintContents(); else window.print(); event.cancelBubble=true; return false;">&nbsp;&nbsp;</TD>
                      <TD><A class=buttontext 
                        href="http://support.microsoft.com/default.aspx?scid=kb;en-us;Q138594&amp;ID=kb;en-us;Q138594#" 
                        onclick="if(document.getElementById) PrintContents(); else window.print(); event.cancelBubble=true; return false;" 
                        title="Print the contents of this page">Print</A></TD>
                      <TD 
                      onclick="if(document.getElementById) PrintContents(); else window.print(); event.cancelBubble=true; return false;">&nbsp;</TD>
                      <TD 
                      onclick="if(document.getElementById) PrintContents(); else window.print(); event.cancelBubble=true; return false;"><IMG 
                        border=0 hspace=0 
                        src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/print_icon.gif"></TD>
                      <TD 
                      onclick="if(document.getElementById) PrintContents(); else window.print(); event.cancelBubble=true; return false;">&nbsp;&nbsp;</TD></TR></TBODY></TABLE></TD>
                <TD class=bannerborder width=1><IMG height=1 
                  src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/1ptrans.gif" 
                  width=1></TD>
                <TD class=buttonright 
                onmouseout='this.style.backgroundColor = "";this.style.cursor="default";' 
                onmouseover='this.style.backgroundColor = "#3366CC";this.style.cursor="hand";'>
                  <TABLE border=0 cellPadding=0 cellSpacing=0>
                    <TBODY>
                    <TR>
                      <TD onclick="">&nbsp;&nbsp;</TD>
                      <TD><A class=buttontext 
                        href="http://support.microsoft.com/default.aspx?scid=fh;EN-GB;GSSHELP" 
                        onclick="" 
                        title="View information on how to use this site effectively">Help</A></TD>
                      <TD onclick="">&nbsp;</TD>
                      <TD onclick=""><IMG border=0 hspace=0 
                        src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/help_icon.gif"></TD>
                      <TD 
              onclick="">&nbsp;&nbsp;</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><IFRAME 
            height=10 id=printframe name=printframe 
            src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/Blank.htm" 
            style="DISPLAY: none; LEFT: 0px; POSITION: absolute; TOP: 0px; VISIBILITY: hidden" 
            width=10></IFRAME></TD></TR>
        <TR>
          <TD class=bannerborder-bottom><IMG height=2 
            src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/1ptrans.gif" 
            width=1></TD>
          <TD class=bannerborder-bottom><IMG height=2 
            src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/1ptrans.gif" 
            width=1></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD class=noprint width=10><IMG height=1 
      src="HOWTO Send Raw Data to a Printer by Using the Win32 API_files/1ptrans.gif" 
      width=10></TD>
    <TD vAlign=top width="100%"><BR>
      <CENTER><NOLEFTNAV xmlns:user="urn:user-scripts" 
      xmlns:msxsl="urn:schemas-microsoft-com:xslt" 
      xmlns:kbns="urn:schemas-microsoft-com/PSS/KBXML">
      <TABLE border=0 cellPadding=5 cellSpacing=0 width="95%">
        <TBODY>
        <TR>
          <TD vAlign=top><FONT face="Verdana, Arial, Helvetica" size=2><!-- - - - - - - - - - - PAGE TEXT BEGINS BELOW HERE - - - - - - - - - - --><BR>
            <H3>HOWTO: Send Raw Data to a Printer by Using the Win32 API 
            <SPAN>(Q138594)</SPAN></H3>
            <HR>
            The information in this article applies to:<BR><BR>
            <UL style="MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px">
              <LI style="PADDING-BOTTOM: 2px; PADDING-TOP: 0px">Microsoft Win32 
              Software Development Kit (SDK), used with: 
              <UL style="MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px">
                <LI style="PADDING-BOTTOM: 2px; PADDING-TOP: 0px">Microsoft 
                Windows NT Server version 3.51 </LI></UL>
              <UL style="MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px">
                <LI style="PADDING-BOTTOM: 2px; PADDING-TOP: 0px">Microsoft 
                Windows NT Workstation version 3.51 </LI></UL>
              <UL style="MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px">
                <LI style="PADDING-BOTTOM: 2px; PADDING-TOP: 0px">Microsoft 
                Windows 95 </LI></UL></LI></UL>
            <UL style="MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -