|  02.02.2011, 06:46 | #1 | 
| HAI; CAN HAS STDIO? |  экспорт в Excel из EP (AX 2009) 
			
			есть для этого простой код, который выглядит так: X++: protected void Button3_Click(object sender, EventArgs e) { string attachment = "attachment; filename=Contacts.xls"; Response.ClearContent(); Response.AddHeader("content-disposition", attachment); Response.ContentType = "application/ms-excel"; StringWriter sw = new StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); AxGridView1.RenderControl(htw); Response.Write(sw.ToString()); Response.End(); } X++: "Control 'GridView1' of type 'GridView' must be placed inside a form tag with runat=server."X++: public override void VerifyRenderingInServerForm(Control control) { } или, может, есть какие-то другие решения? спасибо 
				__________________ our sharp bitter vitriol is not that of the vulgar. | 
|  | 
|  | 
| 
 |