PC Review


Reply
Thread Tools Rate Thread

How can we Send Print at our Local Printer or Network Printer thru Pocket PC

 
 
zeeshan
Guest
Posts: n/a
 
      8th Dec 2005
I have seen some article about PrinterCE, but that printers are
directly attached with Pocket PC and those Printer has support of
Pocket PC, but I m interested to send print at my local PC Printer or
any printer on Network.

Thanks
Zeeshan

 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWxleCBZYWtobmluIFtNVlBd?=
Guest
Posts: n/a
 
      8th Dec 2005
Just use the FileStream and write the text into the stream. Something like
that:

FileStream fs;
fs = new FileStream(@"\\Server\HP5si_PCL", FileMode.Create);

string printStr = "Hello network printer";

byte[] data = System.Text.Encoding.UTF8.GetBytes(printStr);

fs.Write(data, 0, data.Length);

//Put <FF> at the end of the document
byte[] byteFF = new byte[] { FF };
fs.Write(byteFF, 0, 1);

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org


"zeeshan" wrote:

> I have seen some article about PrinterCE, but that printers are
> directly attached with Pocket PC and those Printer has support of
> Pocket PC, but I m interested to send print at my local PC Printer or
> any printer on Network.
>
> Thanks
> Zeeshan
>
>

 
Reply With Quote
 
Tim Field
Guest
Posts: n/a
 
      9th Dec 2005
Note that PrinterCE.NetCF SDK does support printing to shared network
printers via WiFi or wired network connections from your device, as well
as IP network, Bluetooth, Infrared and serial:

Network printing info:
http://www.fieldsoftware.com/NetworkOptions.htm

PrinterCE.NetCF SDK Home:
http://www.fieldsoftware.com/PrinterCE_NetCF.htm

Download free 60-day evaluation:
http://www.fieldsoftware.com/Printer...F_download.htm

Supported printers:
http://www.fieldsoftware.com/PrintersSupported.htm


Also find example code, online documentation and much more.


Tim
-------------------------------------------------
FieldSoftware Products
Printing Solutions for Pocket PC & Windows CE
http://www.fieldsoftware.com
-------------------------------------------------


In article <(E-Mail Removed)>,
(E-Mail Removed) says...
> I have seen some article about PrinterCE, but that printers are
> directly attached with Pocket PC and those Printer has support of
> Pocket PC, but I m interested to send print at my local PC Printer or
> any printer on Network.
>
> Thanks
> Zeeshan
>
>

 
Reply With Quote
 
Zeeshan Khatri
Guest
Posts: n/a
 
      12th Dec 2005

Thanks for your message it worked. Now I m trying to send Image on
Printer. I tried to convert .bmp file in the Array of Byte but still no
luck, and i m not sure, after converting any image into byte array and
send it to the filestream u mentioned, will work or not.

Regards,
Zeeshan


*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      12th Dec 2005
Are you sure that a Windows bitmap is going to be printable by this printer?
You really need to be using PrinterCE or, if you absolutely must waste your
time, get the specs for the printer language that your target printer uses
and figure out what you should be sending for the bitmap case. We can't
write this code for you...

Paul T.

"Zeeshan Khatri" <(E-Mail Removed)> wrote in message
news:%23pTmGMw$(E-Mail Removed)...
>
> Thanks for your message it worked. Now I m trying to send Image on
> Printer. I tried to convert .bmp file in the Array of Byte but still no
> luck, and i m not sure, after converting any image into byte array and
> send it to the filestream u mentioned, will work or not.
>
> Regards,
> Zeeshan
>
>
> *** Sent via Developersdex http://www.developersdex.com ***



 
Reply With Quote
 
zeeshan
Guest
Posts: n/a
 
      13th Dec 2005
Okay.. I understand... thanks for your reply..

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to enable local printer AND disable network printer- printer w rni796 Windows XP Print / Fax 3 24th Nov 2008 05:46 PM
local printer sending printouts to network printer device Rickard Microsoft Windows 2000 Printing 2 24th Mar 2004 12:18 PM
Need a way to capture or redirect the LPT1 port to a network printer in Windows XP Pro......TIA This is so that an old DOS program can print to a network printer on a jetdirect. Ralph Malph Windows XP General 6 13th Mar 2004 07:16 AM
Local Network Printer won't Print Willard Microsoft Windows 2000 Networking 1 6th Feb 2004 06:22 PM
Unable to print to local printer... jobs print on network printer instead Bill Hagemann Microsoft Windows 2000 Printing 1 10th Dec 2003 02:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:38 PM.