private void GerarRelatorioMesSemMaterial() { clRelatorios clRel = new clRelatorios(); string nomeRel = clRel.FechamentoMesSemMaterial(cmbObra.SelectedValue.ToString(), txtDataInicial.Text, txtDataFinal.Text, "D"); this.Response.Write("<SCRIPT language=javascript>window.open('../" + nomeRel + "', '_blank', 'width=850, height=600, menubar=no, resizable=yes, scrollbars=yes, top=35, left=105');</SCRIPT>"); }
protected void btnImprimirQR_Click(object sender, EventArgs e) { string site = ConfigurationManager.AppSettings["ImagensQRCODE"]; clRelatorios clRel = new clRelatorios(); string arquivo = clRel.QRCODE(ViewState["cmpCoEquipamentoObra"].ToString(), 0); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('../" + arquivo + "','_blank')", true); this.ModalPopupExtender2.Show(); }