vb.net 2010 - How to export report from Devexpress End user designer? -
i have used standard report designer in winform , added button "export pdf" in designer bar.
i want when click on button , opened report or edited report in designer should exported in pdf.
please give solution this.
you need add button in ribbon , enable export command button. see below code snippet devexpress sample project reports in version 14.2.5.
create button item in printpreview tab , specify it's properties below:
private devexpress.xtraprinting.preview.printpreviewbaritem printpreviewbaritem23; this.ribboncontrol1.items.addrange(new devexpress.xtrabars.baritem[] { ..... this.printpreviewbaritem23 ..... }; // // printpreviewbaritem23 // this.printpreviewbaritem23.buttonstyle = devexpress.xtrabars.barbuttonstyle.dropdown; this.printpreviewbaritem23.caption = "export to"; this.printpreviewbaritem23.command = devexpress.xtraprinting.printingsystemcommand.exportfile; this.printpreviewbaritem23.contextspecifier = this.xrdesignribboncontroller1; this.printpreviewbaritem23.enabled = false; this.printpreviewbaritem23.glyph = ((system.drawing.image)(resources.getobject("printpreviewbaritem23.glyph"))); this.printpreviewbaritem23.id = 91; this.printpreviewbaritem23.largeglyph = ((system.drawing.image)(resources.getobject("printpreviewbaritem23.largeglyph"))); this.printpreviewbaritem23.name = "printpreviewbaritem23";
-gui view
you can add single command button export pdf, need check specific properties need set on control. can above programmatic work in report designer.
hope help.
Comments
Post a Comment