General Category > ParamQuery Pro Evaluation Support

Issue with exportRender Property Not Working as Expected

(1/1)

cui:
Hi,

I'm encountering an issue with the exportRender property where it fails to function as expected. According to the documentation, I've set exportRender: true with the intention of enabling image export functionality. However, this setting does not seem to have the desired effect, and images are not being exported.
Could you please provide some guidance on how to resolve this issue?

--- Code: ---  {
    title: '图片',
    dataIndx: 'image',
    align: 'center',
    filter: {},
    exportRender: true,
    editable: false,
    render(ui) {
      if (ui.cellData) {
        return `<img src='${ui.cellData}' style="height: 20px;"/>`
      }
    },
  },
--- End code ---
Thank you very much for your assistance.

Best regards,
cui

cui:
I misunderstood the usage of exportRender. I want to know how to export the render result.

cui:

--- Quote from: cui on January 20, 2025, 09:06:00 am ---Hi,

I have a table that contains images, and I want to know how to export this table to an XLSX file that includes the images.
Could you please provide some guidance on how to resolve this issue?

--- Code: ---  {
    title: '图片',
    dataIndx: 'image',
    align: 'center',
    filter: {},
    exportRender: false,
    editable: false,
    render(ui) {
      if (ui.cellData) {
        return `<img src='${ui.cellData}' style="height: 20px;"/>`
      }
    },
  },
--- End code ---
Thank you very much for your assistance.

Best regards,
cui

--- End quote ---

paramvir:
Only floating images can be exported.

Images in cells are not exportable currently; its support would be added in the upcoming versions. thanks for your feedback.

cui:
Okay,thank you for your response.

Navigation

[0] Message Index

Go to full version