How to export to WMF or EMF File

sjmsjm
edited 7:54PM in FastReport 4.0
I want to export to EMF file for other use, please tell me how to do this,

thank's !! >

Comments

  • sjmsjm
    edited 7:54PM
    sjm wrote: »
    I want to export to EMF file for other use, please tell me how to do this,

    thank's !! >


    Yes, I found a bug in TfrxEMFExport (frxExportImage.pas).

    before:
    procedure TfrxEMFExport.StartPage(Page: TfrxReportPage; Index: Integer);
    var
    i: Extended;
    begin
    Inc(FCurrentPage);
    if FSeparate then
    begin
    FMetafile := TMetafile.Create;
    FDiv := EMF_DIV;
    FMetafileCanvas := TMetafileCanvas.Create(FMetafile, 0);
    FMetafileCanvas.Brush.Color := clWhite;
    FMetafile.Width := Round(Page.Width * FDiv);
    FMetafile.Height := Round(Page.Height * FDiv);
    FMaxX := 0;
    FMaxY := 0;
    FMinX := FMetafile.Width;
    FMinY := FMetafile.Height;
    end
    .....................


    after:
    procedure TccfrxEMFExport.StartPage(Page: TfrxReportPage; Index: Integer);
    var
    i: Extended;
    begin
    Inc(FCurrentPage);
    if FSeparate then
    begin
    FMetafile := TMetafile.Create;
    FDiv := EMF_DIV;
    FMetafile.Width := Round(Page.Width * FDiv);
    FMetafile.Height := Round(Page.Height * FDiv);
    FMetafileCanvas := TMetafileCanvas.Create(FMetafile, 0);
    FMetafileCanvas.Brush.Color := clWhite;
    FMaxX := 0;
    FMaxY := 0;
    FMinX := FMetafile.Width;
    FMinY := FMetafile.Height;
    end

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.