Hi, i want to use this command to export my gantt to pdf.
The command does not work, did I get the syntax wrong?
MSProject.Application.ActiveProject.ExportAsFixedFormat FileName:="C:\Users\User1\Downloads\Gantt1.pdf", FileType:=pjPDF, IncludeDocumentProperties:=True, IncludeDocumentMarkup:=False, ArchiveFormat:=False, FromDate:="19/12/21 23:00", ToDate:="13/03/22 23:00"
Thank you
Lac37