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 8:04PM
    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 8:04PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.