public void ShowForm(System.Windows.Forms.Form frm, string id) { frmMain=frm; this.Show(); object empty = null; axW.Navigate("http://localhost:2124/Studiebogservice/_Ankomst/LabelPrint.aspx?id=" + id, ref empty, ref empty, ref empty, ref empty); for (; axW.ReadyState != SHDocVw.tagREADYSTATE.READYSTATE_COMPLETE; ) { System.Windows.Forms.Application.DoEvents(); } axW.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER, ref empty, ref empty); Environment.Exit(1); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)