Topic
Exporting a diagram to a picture file format depending on display !
Page d'accueil ' Communauté ' Généralités ' Exportation d'un diagramme vers un format de fichier image en fonction de l'affichage !
- Ce sujet contient 3 réponses, 2 participants et a été mis à jour pour la dernière fois par HerveM1234, le il y a 9 années et 11 mois.
-
AuteurMessages
-
07.08.2015 à 09:57 #34578HerveM1234Participant
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
07.08.2015 à 09:57 #34581HerveM1234ParticipantHi,
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
11.08.2015 à 11:30 #34579Bernhard KantzParticipantIf 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).
11.08.2015 à 15:01 #34580HerveM1234ParticipantThanks 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.
-
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.