Click here to Skip to main content
15,892,059 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Master/Detail Pin
leckey17-Jul-06 8:07
leckey17-Jul-06 8:07 
GeneralRe: Master/Detail Pin
deepaks317-Jul-06 19:46
deepaks317-Jul-06 19:46 
QuestionGridview Pin
kjosh13-Jul-06 9:15
kjosh13-Jul-06 9:15 
AnswerRe: Gridview Pin
minhpc_bk13-Jul-06 15:29
minhpc_bk13-Jul-06 15:29 
AnswerRe: Gridview Pin
albCode13-Jul-06 21:24
albCode13-Jul-06 21:24 
QuestionSaving\Reading Configuration parameters in a WebService. Pin
Gilad Kapelushnik13-Jul-06 6:22
Gilad Kapelushnik13-Jul-06 6:22 
AnswerRe: Saving\Reading Configuration parameters in a WebService. Pin
minhpc_bk13-Jul-06 16:30
minhpc_bk13-Jul-06 16:30 
QuestionTrying to print an html page without to load it in asp.net Pin
sai_akkina13-Jul-06 5:11
sai_akkina13-Jul-06 5:11 
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:23
mentorNot Active13-Jul-06 5:23 
QuestionPasswordRecovery and programmatically setting mailSettings Pin
Barry Etter13-Jul-06 5:10
Barry Etter13-Jul-06 5:10 
AnswerRe: PasswordRecovery and programmatically setting mailSettings Pin
Mike Ellison13-Jul-06 6:18
Mike Ellison13-Jul-06 6:18 
QuestionASPEXEC DLL Pin
vfhgujaqwe13-Jul-06 5:05
vfhgujaqwe13-Jul-06 5:05 
QuestionHow can I put the line breraks in a message?? Pin
malalation13-Jul-06 5:05
malalation13-Jul-06 5:05 
AnswerRe: How can I put the line breraks in a message?? Pin
Paddy Boyd13-Jul-06 5:56
Paddy Boyd13-Jul-06 5:56 
GeneralRe: How can I put the line breraks in a message?? Pin
malalation14-Jul-06 11:06
malalation14-Jul-06 11:06 
AnswerRe: How can I put the line breraks in a message?? Pin
Guffa13-Jul-06 20:33
Guffa13-Jul-06 20:33 
Questionloading usercontrol templates dynamically from database Pin
For_IT13-Jul-06 3:28
For_IT13-Jul-06 3:28 
AnswerRe: loading usercontrol templates dynamically from database Pin
Mike Ellison13-Jul-06 6:43
Mike Ellison13-Jul-06 6:43 
AnswerRe: loading usercontrol templates dynamically from database Pin
minhpc_bk13-Jul-06 15:33
minhpc_bk13-Jul-06 15:33 
QuestionDate Difference Pin
leelaraj13-Jul-06 1:46
leelaraj13-Jul-06 1:46 
AnswerRe: Date Difference Pin
Paddy Boyd13-Jul-06 2:02
Paddy Boyd13-Jul-06 2:02 
GeneralRe: Date Difference Pin
leelaraj13-Jul-06 21:46
leelaraj13-Jul-06 21:46 
QuestionSharing a VS2005 web application in SourceSafe Pin
PeteConc13-Jul-06 1:25
PeteConc13-Jul-06 1:25 
AnswerRe: Sharing a VS2005 web application in SourceSafe Pin
Not Active13-Jul-06 2:20
mentorNot Active13-Jul-06 2:20 
GeneralRe: Sharing a VS2005 web application in SourceSafe Pin
PeteConc13-Jul-06 2:24
PeteConc13-Jul-06 2:24 

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.