Example #1
0
        MXDWSerializationManager(
            PrintQueue queue
            )
        {
            this._jobName      = null;
            this._gdiDevice    = null;
            this._mxdwFileName = null;

            _printQueue = queue;

            _jobName = _printQueue.CurrentJobSettings.Description;

            if (_jobName == null)
            {
                _jobName = NgcSerializerUtil.InferJobName(null);
            }

            _gdiDevice = new MetroToGdiConverter(_printQueue);
            GdiDevice.CreateDeviceContext(_jobName, InferPrintTicket());
            _isPassThruSupported = GdiDevice.ExtEscMXDWPassThru();
            GdiDevice.DeleteDeviceContext();
        }