Click here to Skip to main content
15,879,613 members
Home / Discussions / C#
   

C#

 
GeneralRe: Newline in DataGrid Pin
leppie16-May-06 19:18
leppie16-May-06 19:18 
QuestionPrinting any file using Shell Pin
emran83416-May-06 13:44
emran83416-May-06 13:44 
AnswerRe: Printing any file using Shell Pin
Nader Elshehabi16-May-06 15:36
Nader Elshehabi16-May-06 15:36 
GeneralRe: Printing any file using Shell Pin
emran83416-May-06 19:06
emran83416-May-06 19:06 
GeneralRe: Printing any file using Shell Pin
emran83418-May-06 0:09
emran83418-May-06 0:09 
GeneralRe: Printing any file using Shell Pin
Nader Elshehabi18-May-06 16:22
Nader Elshehabi18-May-06 16:22 
GeneralRe: Printing any file using Shell Pin
emran83418-May-06 16:48
emran83418-May-06 16:48 
GeneralRe: Printing any file using Shell Pin
Nader Elshehabi19-May-06 11:34
Nader Elshehabi19-May-06 11:34 
Well, it's quite simple. For eaxmple if you wish to print HTML pages whether online or on your computer. you implement a WebBrowser component (Whether visible = true, or false, it doesn't matter). Then you use:
webBrowser1.Print();
You don't need to make it visible as I said. you can put it there invisible just for printing, or you can use its full capabilities.
to change the URL use the Navigate() method.
but it's IMPORTANT to make sure that all default print setting are valid. For example make sure that your current printer is connected, On, and set as default, or you may end up printing that page using adobe virtual pdf printer, or even printing it to a fileSmile | :) (according to your default printing settings). Also default Color options (Color - Grey Scale - B&W) are used without a choice. That's how you print invisibly;
I hope this was useful... Good Luck.
GeneralRe: Printing any file using Shell Pin
emran83419-May-06 21:52
emran83419-May-06 21:52 
GeneralRe: a question about SQL Pin
emran83420-May-06 20:03
emran83420-May-06 20:03 
GeneralRe: a question about SQL [modified] Pin
Nader Elshehabi21-May-06 11:27
Nader Elshehabi21-May-06 11:27 
GeneralRe: a question about SQL [modified] Pin
emran83425-May-06 13:13
emran83425-May-06 13:13 
AnswerRe: a question about SQL [modified] Pin
Nader Elshehabi28-May-06 5:05
Nader Elshehabi28-May-06 5:05 
GeneralRe: a question about SQL [modified] Pin
emran83428-May-06 18:09
emran83428-May-06 18:09 
AnswerRe: a question about SQL [modified] Pin
Nader Elshehabi29-May-06 13:22
Nader Elshehabi29-May-06 13:22 
QuestionHow to preserve line feed character in C# TextBox ? Pin
TinaQ16-May-06 12:53
TinaQ16-May-06 12:53 
AnswerRe: How to preserve line feed character in C# TextBox ? Pin
Office Lineman16-May-06 13:06
Office Lineman16-May-06 13:06 
AnswerRe: How to preserve line feed character in C# TextBox ? Pin
Christian Graus16-May-06 13:16
protectorChristian Graus16-May-06 13:16 
GeneralRe: How to preserve line feed character in C# TextBox ? Pin
TinaQ16-May-06 13:48
TinaQ16-May-06 13:48 
GeneralRe: How to preserve line feed character in C# TextBox ? Pin
Christian Graus16-May-06 14:00
protectorChristian Graus16-May-06 14:00 
GeneralRe: How to preserve line feed character in C# TextBox ? Pin
TinaQ16-May-06 14:08
TinaQ16-May-06 14:08 
QuestionHow to stop service from being stopped Pin
DUKEMAN16-May-06 11:22
DUKEMAN16-May-06 11:22 
AnswerRe: How to stop service from being stopped Pin
martin_hughes16-May-06 12:26
martin_hughes16-May-06 12:26 
AnswerRe: How to stop service from being stopped Pin
Albert Pascual16-May-06 12:55
sitebuilderAlbert Pascual16-May-06 12:55 
GeneralRe: How to stop service from being stopped Pin
DUKEMAN16-May-06 21:29
DUKEMAN16-May-06 21:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.