Esempio n. 1
0
 override public void CommitLastStream()
 {
     if ((_eDocJob != null) && (_lastImage != null))
     {
         _lastImage.Commit();
         _lastImage = null;
     }
     else
     {
         base.CommitLastStream();
     }
 }
Esempio n. 2
0
 // Add a stream to the container for resource embedding
 override public System.IO.Stream GetResourceStream(string name, out string uri)
 {
     if (_eDocJob != null)
     {
         _lastImage = _eDocJob.AddImage(name);
         uri        = _lastImage.RelativeUri(_pageUri);
         return(_lastImage.GetStream());
     }
     else
     {
         return(base.GetResourceStream(name, out uri));
     }
 }