Click here to Skip to main content
15,914,399 members
Home / Discussions / C#
   

C#

 
GeneralRe: FileSystemEventHandler arguments question. Pin
aquacadet19-May-06 6:00
aquacadet19-May-06 6:00 
GeneralRe: FileSystemEventHandler arguments question. Pin
Stefan Troschuetz19-May-06 6:34
Stefan Troschuetz19-May-06 6:34 
Questiona question about messagebox ? Pin
cmpeng3419-May-06 4:39
cmpeng3419-May-06 4:39 
AnswerRe: a question about messagebox ? Pin
mav.northwind19-May-06 5:19
mav.northwind19-May-06 5:19 
QuestionProgrammatically creating Reports using Reporting Services Pin
anderslundsgard19-May-06 4:14
anderslundsgard19-May-06 4:14 
Questionhelp printing HTML with C# to printer Pin
dpietro19-May-06 4:14
dpietro19-May-06 4:14 
AnswerRe: help printing HTML with C# to printer Pin
BoneSoft19-May-06 4:42
BoneSoft19-May-06 4:42 
GeneralRe: help printing HTML with C# to printer Pin
dpietro19-May-06 5:02
dpietro19-May-06 5:02 
Thanks - that helped me move forward a little. Apparently in 2005 you must use WebBrowser.
I tried...
WebBrowser webBrowserForPrinting = new WebBrowser();
webBrowserForPrinting.Visible = false;

webBrowserForPrinting.Url = new Uri(@"c:\\Checkpoint\\websites\\printservice\\app_data\\books.html");

while (webBrowserForPrinting.ReadyState != WebBrowserReadyState.Loaded)
{ };
webBrowserForPrinting.Print();
webBrowserForPrinting.Dispose();

I now get an error in a browser window:
System.Threading.ThreadStateException: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.
at System.Windows.Forms.WebBrowserBase..ctor(String clsidString)
at System.Windows.Forms.WebBrowser..ctor()
at Service.PrintXML()

Anyone have any good ideas as to what to do with this one?
As I said - its in a web service, I dont want the browser to be visible either.
Thanks!

Questionset a background image to my control Pin
Sasuko19-May-06 4:02
Sasuko19-May-06 4:02 
Questioncalling datagridview double click event on button click Pin
abhinish19-May-06 3:38
abhinish19-May-06 3:38 
AnswerRe: calling datagridview double click event on button click Pin
Josh Smith19-May-06 5:08
Josh Smith19-May-06 5:08 
Questionproblem in Rollback operation in deloyment project under c#.net Pin
manusharma19-May-06 3:15
manusharma19-May-06 3:15 
QuestionDisplaying Progress Pin
Rizwan Rathore19-May-06 2:39
Rizwan Rathore19-May-06 2:39 
AnswerRe: Displaying Progress Pin
MohammadAmiry19-May-06 3:26
MohammadAmiry19-May-06 3:26 
GeneralRe: Displaying Progress Pin
Rizwan Rathore19-May-06 7:45
Rizwan Rathore19-May-06 7:45 
GeneralRe: Displaying Progress Pin
Limey42021-May-06 11:41
Limey42021-May-06 11:41 
Questiontable to label - basics(asp&c#) Pin
locaas19-May-06 1:55
locaas19-May-06 1:55 
AnswerRe: table to label - basics(asp&c#) Pin
pq4noeh19-May-06 2:13
pq4noeh19-May-06 2:13 
GeneralRe: table to label - basics(asp&c#) Pin
locaas19-May-06 2:21
locaas19-May-06 2:21 
GeneralRe: here you have the code Pin
pq4noeh21-May-06 22:01
pq4noeh21-May-06 22:01 
QuestionConect to the domain server Pin
pq4noeh19-May-06 1:33
pq4noeh19-May-06 1:33 
AnswerRe: Conect to the domain server Pin
Ryan Roberts19-May-06 2:14
Ryan Roberts19-May-06 2:14 
QuestionRegarding Crystel Reports Pin
A.Grover19-May-06 1:18
A.Grover19-May-06 1:18 
QuestionOptional Parameter Pin
NICE TO MEET19-May-06 1:02
NICE TO MEET19-May-06 1:02 
AnswerRe: Optional Parameter Pin
Rei Miyasaka19-May-06 1:14
Rei Miyasaka19-May-06 1:14 

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.