javascript - Birt Automatically render report to xlsx when you choose to render to xls -


i want birt automatically render report xlsx whenever choose render xls.

can please me this. thanks.

it seems default emitter xls , xlsx same.

emitterid = engine.getconfig( ).getdefaultemitter( format ); 

(for xls , xlsx same emitterid).

you can override with:

engine.getconfig().setdefaultemitter(format, emitterid); 

unfortunately, cannot tell put emitterid.

edit:

emitterid xlsx: uk.co.spudsoft.birt.emitters.excel.xlsxemitter

emitterid xls: org.eclipse.birt.report.engine.emitter.prototype.excel (problably should be: uk.co.spudsoft.birt.emitters.excel.xlsemitter)


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -