Click here to Skip to main content
15,891,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: HOW TO CREATE AN INSTANCE OF INTERNET EXPLORER AND HOW TO USE IT? Pin
Zoltan Balazs30-Apr-08 20:00
Zoltan Balazs30-Apr-08 20:00 
GeneralRe: HOW TO CREATE AN INSTANCE OF INTERNET EXPLORER AND HOW TO USE IT? Pin
Christian Graus30-Apr-08 20:13
protectorChristian Graus30-Apr-08 20:13 
GeneralRe: HOW TO CREATE AN INSTANCE OF INTERNET EXPLORER AND HOW TO USE IT? Pin
Zoltan Balazs30-Apr-08 20:30
Zoltan Balazs30-Apr-08 20:30 
GeneralRe: HOW TO CREATE AN INSTANCE OF INTERNET EXPLORER AND HOW TO USE IT? Pin
Christian Graus30-Apr-08 20:39
protectorChristian Graus30-Apr-08 20:39 
GeneralRe: HOW TO CREATE AN INSTANCE OF INTERNET EXPLORER AND HOW TO USE IT? Pin
Anthony Mushrow1-May-08 1:38
professionalAnthony Mushrow1-May-08 1:38 
QuestionHow to Intercept WebBrowser Control default download with my custom downloader? Pin
Anindya Chatterjee30-Apr-08 18:10
Anindya Chatterjee30-Apr-08 18:10 
AnswerRe: How to Intercept WebBrowser Control default download with my custom downloader? Pin
Anthony Mushrow1-May-08 1:47
professionalAnthony Mushrow1-May-08 1:47 
GeneralRe: How to Intercept WebBrowser Control default download with my custom downloader? Pin
Spacix One1-May-08 8:50
Spacix One1-May-08 8:50 
GeneralRe: How to Intercept WebBrowser Control default download with my custom downloader? Pin
Anthony Mushrow1-May-08 11:36
professionalAnthony Mushrow1-May-08 11:36 
GeneralRe: How to Intercept WebBrowser Control default download with my custom downloader? Pin
Spacix One2-May-08 5:01
Spacix One2-May-08 5:01 
GeneralRe: How to Intercept WebBrowser Control default download with my custom downloader? Pin
Anindya Chatterjee1-May-08 10:30
Anindya Chatterjee1-May-08 10:30 
QuestionHow to use sgen.exe in postbuild events Pin
Razvan Dimescu30-Apr-08 10:11
Razvan Dimescu30-Apr-08 10:11 
AnswerRe: How to use sgen.exe in postbuild events Pin
Rob Graham30-Apr-08 11:46
Rob Graham30-Apr-08 11:46 
GeneralRe: How to use sgen.exe in postbuild events Pin
Razvan Dimescu30-Apr-08 20:11
Razvan Dimescu30-Apr-08 20:11 
AnswerRe: How to use sgen.exe in postbuild events Pin
Ed.Poore30-Apr-08 11:54
Ed.Poore30-Apr-08 11:54 
GeneralRe: How to use sgen.exe in postbuild events Pin
Razvan Dimescu30-Apr-08 20:09
Razvan Dimescu30-Apr-08 20:09 
QuestionTab key functionality in editor user control Pin
Nouman Bhatti30-Apr-08 9:53
Nouman Bhatti30-Apr-08 9:53 
AnswerRe: Tab key functionality in editor user control Pin
Big Daddy Farang30-Apr-08 10:48
Big Daddy Farang30-Apr-08 10:48 
GeneralRe: Tab key functionality in editor user control Pin
Nouman Bhatti1-May-08 19:30
Nouman Bhatti1-May-08 19:30 
GeneralRe: Tab key functionality in editor user control Pin
Big Daddy Farang2-May-08 5:29
Big Daddy Farang2-May-08 5:29 
QuestionHow to get stored procedure parameters with SQLDMO ? Pin
hdv21230-Apr-08 7:17
hdv21230-Apr-08 7:17 
AnswerRe: How to get stored procedure parameters with SQLDMO ? Pin
Rob Graham30-Apr-08 11:56
Rob Graham30-Apr-08 11:56 
GeneralRe: How to get stored procedure parameters with SQLDMO ? Pin
hdv21230-Apr-08 20:34
hdv21230-Apr-08 20:34 
GeneralRe: How to get stored procedure parameters with SQLDMO ? Pin
goodideadave1-May-08 6:28
goodideadave1-May-08 6:28 
QuestionAfter printing a Word Doc using C#, I cant print from Excel but i CAN print from notepad or anything else... Pin
g1b30-Apr-08 6:56
g1b30-Apr-08 6:56 
Everytime I run this program i created to open, write to a word doc and print it out, I can no longer print from an excel spreadsheet unless i log off the computer and then log back on. The thing is, it only does this for excel. I can print from notepad or MS Word but i cant print anything from excel. Any ideas?

I think there is something in here thats doing it:

.....
WordApp.Visible = true;

Word.Document aDoc = WordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing);

WordApp.ActivePrinter = "Phaser 5500DT PS";

aDoc.PrintOutOld(ref myTrue, ref myFalse, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue, ref myFalse, ref missingValue, ref missingValue, ref missingValue);

System.Threading.Thread.Sleep(3250);

WordApp.ActiveDocument.Close(ref mySave, ref missingValue, ref missingValue);


WordApp.Quit(ref mySave, ref missingValue, ref missingValue);

....


Thanks

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.