on 06-29-2022 5:02 AM
使用12.2.229.4422版本的java runtime。
使用13.0.24.2970版本的crystal report for vs做的RPT。
通过以下方式导出pdf。图片没有显示。
CrystalPrintDataDTO printDataDTO = new CrystalPrintDataDTO();
File file = new File("/home/apphome/test.jpg");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
BufferedImage bi = ImageIO.read(file);
ImageIO.write(bi, "jpg", baos);
printDataDTO.H1 = new ByteArray(baos.toByteArray());
......
String tableAlias =
reportClientDoc.getDatabaseController().getDatabase().getTables().getTable(0).getAlias();
reportClientDoc.getDatabaseController().setDataSource(
printDataCollection, CrystalPrintDataDTO.class, tableAlias, tableAlias);
<br>
And what does loading a JPG into a bytearray have to do with CR?
Can you paste in your original post in english?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check this KBA - Check KBA 3204578 for a Windows 11 specific OLE image issue and workaround.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Upgrade CR for VS to SP 32:
https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.