示例#1
0
        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();
        }
示例#2
0
    public Docker(object app)
    {
        InitializeComponent();

        //MessageBox.Show("starting up?");

        //foreach (CommandBarControl c in cApp.FrameWork.CommandBars["Dockers"].Controls)
        //{
        //    //if (c.Id == "")
        //    //{

        //    //}


        //}

        cApp = app as C.Application;
    }
示例#3
0
        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();
        }