Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to implement Trees ... Pin
Josh Smith13-Jul-06 5:59
Josh Smith13-Jul-06 5:59 
GeneralRe: How to implement Trees ... Pin
led mike13-Jul-06 7:28
led mike13-Jul-06 7:28 
AnswerRe: How to implement Trees ... Pin
Jun Du13-Jul-06 5:51
Jun Du13-Jul-06 5:51 
AnswerRe: How to implement Trees ... [modified] Pin
User 665813-Jul-06 5:53
User 665813-Jul-06 5:53 
AnswerRe: How to implement Trees ... Pin
BoneSoft13-Jul-06 6:13
BoneSoft13-Jul-06 6:13 
AnswerCS 101 Pin
Ennis Ray Lynch, Jr.13-Jul-06 6:22
Ennis Ray Lynch, Jr.13-Jul-06 6:22 
AnswerRe: How to implement Trees ... Pin
Eric Dahlvang13-Jul-06 7:54
Eric Dahlvang13-Jul-06 7:54 
QuestionTrying to print an html page without to load it in asp.net Pin
sai_akkina13-Jul-06 5:12
sai_akkina13-Jul-06 5:12 
Hi,
I am facing a problem in my web application while i am trying to print an html page, whose url is specified in a textbox, using axWebBrowser component. I am getting an error "Exception of type InvalidActiveXStateException was thrown", at axW.Navigate statement. Please help me to rectify this problem.


private void Button1_Click(object sender, System.EventArgs e)<br />
{<br />
	try<br />
	{<br />
		object empty= null;<br />
		System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(WebForm1));<br />
		AxWebBrowser axW=new AxWebBrowser();<br />
		axW.Enabled=true;<br />
		axW.Visible=false;<br />
		axW.OcxState = (System.Windows.Forms.AxHost.State)(resources.GetObject("axW.OcxState"));<br />
		//Response.Write(axW.OcxState.ToString());<br />
		axW.Navigate(TextBox1.Text,ref empty,ref empty,ref empty,ref empty);<br />
		axW.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER ,ref empty,ref empty);<br />
	}<br />
	catch(Exception Ex)<br />
	{<br />
		Response.Write(Ex.Message.ToString());<br />
	}	<br />
}




Thanks,
Sai.
AnswerRe: Trying to print an html page without to load it in asp.net Pin
Not Active13-Jul-06 5:24
mentorNot Active13-Jul-06 5:24 
AnswerRe: Trying to print an html page without to load it in asp.net Pin
Dave Kreskowiak13-Jul-06 6:38
mveDave Kreskowiak13-Jul-06 6:38 
GeneralRe: Trying to print an html page without to load it in asp.net Pin
sai_akkina13-Jul-06 18:11
sai_akkina13-Jul-06 18:11 
Questionmoving an image Pin
john3413-Jul-06 5:00
john3413-Jul-06 5:00 
AnswerRe: moving an image Pin
Christian Graus13-Jul-06 5:09
protectorChristian Graus13-Jul-06 5:09 
AnswerRe: moving an image Pin
Robert Rohde13-Jul-06 5:17
Robert Rohde13-Jul-06 5:17 
AnswerRe: moving an image Pin
Dave Kreskowiak13-Jul-06 6:51
mveDave Kreskowiak13-Jul-06 6:51 
AnswerRe: moving an image [modified] Pin
Dave Kreskowiak13-Jul-06 10:19
mveDave Kreskowiak13-Jul-06 10:19 
GeneralRe: moving an image Pin
john3413-Jul-06 23:03
john3413-Jul-06 23:03 
QuestionPassing more than one QueryString Pin
leckey13-Jul-06 4:28
leckey13-Jul-06 4:28 
AnswerRe: Passing more than one QueryString Pin
Not Active13-Jul-06 4:55
mentorNot Active13-Jul-06 4:55 
QuestionDoing own ToolStripItems… Pin
anderslundsgard13-Jul-06 4:26
anderslundsgard13-Jul-06 4:26 
AnswerRe: Doing own ToolStripItems… Pin
Ed.Poore15-Jul-06 13:04
Ed.Poore15-Jul-06 13:04 
QuestionConverting a Color to RGB (not ARGB) Pin
anderslundsgard13-Jul-06 3:27
anderslundsgard13-Jul-06 3:27 
AnswerRe: Converting a Color to RGB (not ARGB) Pin
stancrm13-Jul-06 3:34
stancrm13-Jul-06 3:34 
GeneralRe: Converting a Color to RGB (not ARGB) Pin
anderslundsgard13-Jul-06 4:06
anderslundsgard13-Jul-06 4:06 
GeneralRe: Converting a Color to RGB (not ARGB) Pin
Christian Graus13-Jul-06 4:22
protectorChristian Graus13-Jul-06 4:22 

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.