TFrxDocxExport Image Size Problem

Hi everyone, I'm using FR 5.5.8, I'm exporting a report with two images using a TFrxDocxExport component.

In Preview, the images size looks perfect, but when I save the report to Docx format or when I use the FrxReport.Export method, the images has a size is very small.

I've update to FR 5.5.11 and I have the same problem

I've attached four images. The first and the next one are the page header and page footer in preview. The Third and the fourth are the Word exportation, the images looks more small than preview

Could you help me please?

Comments

  • gpigpi
    edited 10:24PM
    Try to modify frxExportDOCX.pas:
    w := Round(m.Width * 360000 / fr1cm{m.MMWidth * MMFactor}); //change this line
    h := Round(m.Height * 360000 / fr1cm{m.MMHeight * MMFactor}); //change this line
    id := 'picId' + IntToStr(FPicNum);
    pic := 'image' + IntToStr(FPicNum) + '.emf';
    
  • edited 10:24PM
    gpi wrote: »
    Try to modify frxExportDOCX.pas:
    w := Round(m.Width * 360000 / fr1cm{m.MMWidth * MMFactor}); //change this line
    h := Round(m.Height * 360000 / fr1cm{m.MMHeight * MMFactor}); //change this line
    id := 'picId' + IntToStr(FPicNum);
    pic := 'image' + IntToStr(FPicNum) + '.emf';
    

    thanks, this code fix the problem, is the same code that FR gives me in a ticket service

Leave a Comment