Click here to Skip to main content
15,918,125 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: EditItemTemplate in vb.net 1.1 Pin
mnaveed14-Jul-06 1:05
mnaveed14-Jul-06 1:05 
GeneralRe: EditItemTemplate in vb.net 1.1 Pin
amaneet14-Jul-06 1:37
amaneet14-Jul-06 1:37 
GeneralRe: EditItemTemplate in vb.net 1.1 Pin
mnaveed14-Jul-06 2:51
mnaveed14-Jul-06 2:51 
GeneralRe: EditItemTemplate in vb.net 1.1 Pin
amaneet14-Jul-06 3:05
amaneet14-Jul-06 3:05 
GeneralRe: EditItemTemplate in vb.net 1.1 Pin
mnaveed14-Jul-06 3:29
mnaveed14-Jul-06 3:29 
QuestionCan web apps interoperate with outlook? Pin
Red_Wizard_Shot_The_Food13-Jul-06 23:14
Red_Wizard_Shot_The_Food13-Jul-06 23:14 
AnswerRe: Can web apps interoperate with outlook? Pin
Brent Lamborn14-Jul-06 7:02
Brent Lamborn14-Jul-06 7:02 
QuestionTo print an html page without loading it and without a print dialog, in asp.net Pin
sai_akkina13-Jul-06 22:51
sai_akkina13-Jul-06 22:51 
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 />
}

This application is a web application and I want the print at the server end since the server is the user in our case.

If it is not possible to print with this control in a web application, Is there any other way to print an html page without loading it and not to show any print dialog at the user end.

Please help me with this case.

Thanks in advance,
Sai.
GeneralRe: To print an html page without loading it and without a print dialog, in asp.net Pin
Guffa13-Jul-06 23:03
Guffa13-Jul-06 23:03 
Question'System.StackOverflowException' occurred in System.Data.dll(urgent) Pin
srinandan..13-Jul-06 22:37
srinandan..13-Jul-06 22:37 
AnswerRe: 'System.StackOverflowException' occurred in System.Data.dll(urgent) Pin
enjoycrack13-Jul-06 22:41
enjoycrack13-Jul-06 22:41 
QuestionSession_end or browser close events? Pin
TintinV3ck13-Jul-06 22:23
TintinV3ck13-Jul-06 22:23 
AnswerRe: Session_end or browser close events? Pin
enjoycrack13-Jul-06 22:40
enjoycrack13-Jul-06 22:40 
AnswerRe: Session_end or browser close events? Pin
Guffa13-Jul-06 23:11
Guffa13-Jul-06 23:11 
GeneralRe: Session_end or browser close events? Pin
cloudking1196614-Jul-06 3:44
cloudking1196614-Jul-06 3:44 
QuestionASP.NET page is not working.............!!! Pin
gajee13-Jul-06 21:01
gajee13-Jul-06 21:01 
AnswerRe: ASP.NET page is not working.............!!! [modified] Pin
J4amieC13-Jul-06 22:30
J4amieC13-Jul-06 22:30 
AnswerRe: ASP.NET page is not working.............!!! Pin
enjoycrack13-Jul-06 22:45
enjoycrack13-Jul-06 22:45 
AnswerRe: ASP.NET page is not working.............!!! Pin
Guffa13-Jul-06 23:25
Guffa13-Jul-06 23:25 
AnswerRe: ASP.NET page is not working.............!!! Pin
gajee15-Jul-06 1:27
gajee15-Jul-06 1:27 
QuestionDelete file from previous place after copy it to another place Pin
hi_arv13-Jul-06 19:49
hi_arv13-Jul-06 19:49 
QuestionImage component Pin
Malayil alex13-Jul-06 19:39
Malayil alex13-Jul-06 19:39 
AnswerRe: Image component Pin
psamy13-Jul-06 20:39
psamy13-Jul-06 20:39 
GeneralRe: Image component Pin
Malayil alex14-Jul-06 21:27
Malayil alex14-Jul-06 21:27 
QuestionAddin in ASP.NET Pin
aaraaayen13-Jul-06 19:39
aaraaayen13-Jul-06 19:39 

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.