471,315 Members | 1,461 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Q: Printing files depending on the file ext.

Hi!

In the good old days i used the ShellExecute with print option to print a
..DOC or .XLS file.

Is there a neet way to do this in C#? Is it the printDocument control to
use? Can it detect if it's a word document, excel document etc to perform
the right print out?

Regards
Martin
Dec 8 '05 #1
1 993
Hi,

AFAIK there is no way of doing it, you either use the native app with a
print verb (the good old days's way ) or if you can host a control in your
app that knows how to handle/print the format correctly.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Visual Systems AB (Martin Arvidsson)" <ma**************@vsab.net> wrote in
message news:uN****************@TK2MSFTNGP10.phx.gbl...
Hi!

In the good old days i used the ShellExecute with print option to print a
.DOC or .XLS file.

Is there a neet way to do this in C#? Is it the printDocument control to
use? Can it detect if it's a word document, excel document etc to perform
the right print out?

Regards
Martin

Dec 8 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by David Isaac | last post: by
10 posts views Thread by Brian Hanson | last post: by
3 posts views Thread by John Evans | last post: by
reply views Thread by ryanf | last post: by
2 posts views Thread by Brad Pears | 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.