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 enter image description here

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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -