471,306 Members | 1,276 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

Printing a File..

VJ
I am able to print to File, which I am doing fine in our Program now. I want
to be able to take this file and Print to a printer.

Vijay
Jan 12 '06 #1
6 2078
Vijay,

Do you have a library that will do it already, or do you have to "draw"
the contents to the printer yourself? If the answer is the latter, then you
should check out the PrintDocument class in the System.Drawing.Printing
namespace.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"VJ" <vi********@yahoo.com> wrote in message
news:u%***************@TK2MSFTNGP15.phx.gbl...
I am able to print to File, which I am doing fine in our Program now. I
want to be able to take this file and Print to a printer.

Vijay

Jan 12 '06 #2
VJ
I have printed to the File. The file physically exists in a Windows Folder.
I want to be able to open and print this file from my program

Vijay

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:ON**************@TK2MSFTNGP14.phx.gbl...
Vijay,

Do you have a library that will do it already, or do you have to "draw"
the contents to the printer yourself? If the answer is the latter, then
you should check out the PrintDocument class in the
System.Drawing.Printing namespace.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"VJ" <vi********@yahoo.com> wrote in message
news:u%***************@TK2MSFTNGP15.phx.gbl...
I am able to print to File, which I am doing fine in our Program now. I
want to be able to take this file and Print to a printer.

Vijay


Jan 12 '06 #3
VJ,

Is the file a custom format, or is it handled by another application?
If so, what kind of file, and what application is it?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"VJ" <vi********@yahoo.com> wrote in message
news:uy**************@tk2msftngp13.phx.gbl...
I have printed to the File. The file physically exists in a Windows Folder.
I want to be able to open and print this file from my program

Vijay

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:ON**************@TK2MSFTNGP14.phx.gbl...
Vijay,

Do you have a library that will do it already, or do you have to
"draw" the contents to the printer yourself? If the answer is the
latter, then you should check out the PrintDocument class in the
System.Drawing.Printing namespace.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"VJ" <vi********@yahoo.com> wrote in message
news:u%***************@TK2MSFTNGP15.phx.gbl...
I am able to print to File, which I am doing fine in our Program now. I
want to be able to take this file and Print to a printer.

Vijay



Jan 12 '06 #4
VJ
Nicholas,

Its a Jpeg file, with one ore more pages. It is generatred by our porgram,
using classes in System.Drawing.Printing namespace.

Vijay
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:O2*************@TK2MSFTNGP12.phx.gbl...
VJ,

Is the file a custom format, or is it handled by another application?
If so, what kind of file, and what application is it?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"VJ" <vi********@yahoo.com> wrote in message
news:uy**************@tk2msftngp13.phx.gbl...
I have printed to the File. The file physically exists in a Windows
Folder. I want to be able to open and print this file from my program

Vijay

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:ON**************@TK2MSFTNGP14.phx.gbl...
Vijay,

Do you have a library that will do it already, or do you have to
"draw" the contents to the printer yourself? If the answer is the
latter, then you should check out the PrintDocument class in the
System.Drawing.Printing namespace.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"VJ" <vi********@yahoo.com> wrote in message
news:u%***************@TK2MSFTNGP15.phx.gbl...
I am able to print to File, which I am doing fine in our Program now. I
want to be able to take this file and Print to a printer.

Vijay



Jan 12 '06 #5
Vijay,

If you are doing that, you can use the PrintDocument class. When the
Print event is called, your handler should load the JPG and then call the
DrawImage method on the Graphics instance passed to your event handler.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"VJ" <vi********@yahoo.com> wrote in message
news:uc*************@TK2MSFTNGP15.phx.gbl...
Nicholas,

Its a Jpeg file, with one ore more pages. It is generatred by our porgram,
using classes in System.Drawing.Printing namespace.

Vijay
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:O2*************@TK2MSFTNGP12.phx.gbl...
VJ,

Is the file a custom format, or is it handled by another application?
If so, what kind of file, and what application is it?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"VJ" <vi********@yahoo.com> wrote in message
news:uy**************@tk2msftngp13.phx.gbl...
I have printed to the File. The file physically exists in a Windows
Folder. I want to be able to open and print this file from my program

Vijay

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:ON**************@TK2MSFTNGP14.phx.gbl...
Vijay,

Do you have a library that will do it already, or do you have to
"draw" the contents to the printer yourself? If the answer is the
latter, then you should check out the PrintDocument class in the
System.Drawing.Printing namespace.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"VJ" <vi********@yahoo.com> wrote in message
news:u%***************@TK2MSFTNGP15.phx.gbl...
>I am able to print to File, which I am doing fine in our Program now. I
>want to be able to take this file and Print to a printer.
>
> Vijay
>



Jan 12 '06 #6
VJ
Ok I have tried that.. Let me be more specific in my problem...

My Print, Print To File, Preview all work fine with Regular printers. .I am
having trouble printing to a mini printer Zebra RW420. When I use my print
as described earlier, or as you have suggested it prints Junk characters. It
works, if I do a print to file and go to that file and open it in Paint
program, Microsoft Image Editing software or any Windows program, I try to
print, the file prints properly. When I do the same thing as a Print
command, it fails. I have spoken to the Zebra tech support and they are
clueless.. they are like .NET what?.. so I was trying to see if I can
replicate like a shell print command that I can execute on the file. Anyway
I can do it.. or I should be able to prove that there this is a printer
setting problem

Thanks
Vijay

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:ei**************@TK2MSFTNGP15.phx.gbl...
Vijay,

If you are doing that, you can use the PrintDocument class. When the
Print event is called, your handler should load the JPG and then call the
DrawImage method on the Graphics instance passed to your event handler.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"VJ" <vi********@yahoo.com> wrote in message
news:uc*************@TK2MSFTNGP15.phx.gbl...
Nicholas,

Its a Jpeg file, with one ore more pages. It is generatred by our
porgram, using classes in System.Drawing.Printing namespace.

Vijay
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:O2*************@TK2MSFTNGP12.phx.gbl...
VJ,

Is the file a custom format, or is it handled by another application?
If so, what kind of file, and what application is it?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"VJ" <vi********@yahoo.com> wrote in message
news:uy**************@tk2msftngp13.phx.gbl...
I have printed to the File. The file physically exists in a Windows
Folder. I want to be able to open and print this file from my program

Vijay

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com>
wrote in message news:ON**************@TK2MSFTNGP14.phx.gbl...
> Vijay,
>
> Do you have a library that will do it already, or do you have to
> "draw" the contents to the printer yourself? If the answer is the
> latter, then you should check out the PrintDocument class in the
> System.Drawing.Printing namespace.
>
> Hope this helps.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mv*@spam.guard.caspershouse.com
>
> "VJ" <vi********@yahoo.com> wrote in message
> news:u%***************@TK2MSFTNGP15.phx.gbl...
>>I am able to print to File, which I am doing fine in our Program now.
>>I want to be able to take this file and Print to a printer.
>>
>> Vijay
>>
>
>



Jan 12 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Jody Gelowitz | last post: by
9 posts views Thread by Jody Gelowitz | last post: by
5 posts views Thread by Patrick De Ridder | last post: by
6 posts views Thread by Bruno Hardmeier | last post: by
4 posts views Thread by Rob T | last post: by
2 posts views Thread by coldblood22 | last post: by
18 posts views Thread by Brett | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.