static void Main(string[] args) { vgCore.Application app = new corelDraw.Application(); var activeDocument = app.CreateDocument(); activeDocument.Unit = vgCore.cdrUnit.cdrPixel; AddGrayTriangle(activeDocument); activeDocument.SaveAs($@"E:\{Guid.NewGuid().ToString("N")}.cdr"); activeDocument.Close(); }
static void Main(string[] args) { vgCore.Application app = new corelDraw.Application(); var activeDocument = app.CreateDocument(); activeDocument.Unit = vgCore.cdrUnit.cdrPixel; AddGrayRectangle(activeDocument); //export like eps file activeDocument.Export($@"E:\{Guid.NewGuid().ToString("N")}.eps", vgCore.cdrFilter.cdrEPS); #region Export like pdf //activeDocument.Export($@"E:\{Guid.NewGuid().ToString("N")}.pdf", vgCore.cdrFilter.cdrPDF, vgCore.cdrExportRange.cdrAllPages); #endregion #region export like png // activeDocument.Export($@"E:\{Guid.NewGuid().ToString("N")}.png", vgCore.cdrFilter.cdrPNG); #endregion activeDocument.Close(); }