FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro-Support
Wissen
Community
Über Uns
Referenzen
Jobs
Allgemeiner Kontakt
Händlerverzeichnis
FlexPro-Support
DE
EN
FR
Placeholder
Produkte und Lösungen
Support und Downloads
Unternehmen
Magazin
Kontakt
Sprache
MyWeisang

Account Einstellungen

Topic

Exporting a diagram to a picture file format depending on display !

Startseite ' Community ' Allgemein ' Exporting a diagram to a picture file format depending on display !

Anzeigen von 4-Stellen - 1 bis 4 (von insgesamt 4)
  • Autor
    Beiträge
  • #34578
    HerveM1234
    Teilnehmer

    Hi,

    I don’t really understand why if I export a diagram, using right click, to a picture file (PNG or EMF) with the same resolution set to 600dpi, the result depends on the display at the moment of the exportation!
    It seems to work as a screenshot, not a real conversion to image formats.
    e.g. if the FlexPro window is maximised, everything is correct, if not : the picture is very small.
    When using automatic export in VBA, the quality depends on the last window setting!

    Thanks for help

    #34581
    HerveM1234
    Teilnehmer

    Hi,

    I don’t really understand why if I export a diagram, using right click, to a picture file (PNG or EMF) with the same resolution set to 600dpi, the result depends on the display at the moment of the exportation!
    It seems to work as a screenshot, not a real conversion to image formats.
    e.g. if the FlexPro window is maximised, everything is correct, if not : the picture is very small.
    When using automatic export in VBA, the quality depends on the last window setting!

    Thanks for help

    #34579
    Bernhard Kantz
    Teilnehmer

    If the [i]SizeToFitWindow[/i] of the diagram is set to [i]True[/i], the size specified by [i]Width[/i] and [i]Height[/i] is ignored. This may lead to the unwanted behavior you observed. So resetting this property (and also [i]CursorActive[/i]) in your VBA script will export the diagram in the defined size (regarding the resolution).

    #34580
    HerveM1234
    Teilnehmer

    Thanks for that.

    When I use macro, I write [code]Application.WindowState = fpWindowStateMaximized
    ExportSettings.PNG.Resolution = 600 ‘for example[/code] before exporting picture.

    The problem is when manual export is performed.

Anzeigen von 4-Stellen - 1 bis 4 (von insgesamt 4)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.