Tuesday, 15 January 2013

display barcode image in crystal report using vb.net -



display barcode image in crystal report using vb.net -

in frm_reporting.vb image barcode created in btnencode method. save in memory stream. want save in info set , retreive , display in crystal report. in run time , didn't show in crystal report.please help me.

private sub crystalreportviewer1_load(byval sender system.object, byval e system.eventargs) handles crystalreportviewer1.load dim rptbarcode rptbarcode2 rptbarcode = new rptbarcode2 dim xrep dataset21 xrep = new dataset21 dim row datarow dim myimg image = nil seek btnencode(myimg, barcodetext) row = xrep.tables("dt").newrow dim ms new memorystream() dim ii byte() myimg.save(ms, system.drawing.imaging.imageformat.jpeg) ii = ms.toarray() xrep.tables("dt").rows.add(ii) rptbarcode.load("gsmproduction.rptbarcode2.rpt") rptbarcode.setdatasource(xrep.tables("dt")) crystalreportviewer1.reportsource = rptbarcode grab ex exception messagebox.show(ex.message) end seek end sub

vb.net crystal-reports datatable dataset

No comments:

Post a Comment