public stdole.IPictureDisp GenerateSignatureLineImage( Office.SignatureLineImage siglnimg, Office.SignatureSetup psigsetup, Office.SignatureInfo psiginfo, object XmlDsigStream) { stdole.IPictureDisp picture = null; Bitmap b = new Bitmap(200, 50); if (siglnimg == Office.SignatureLineImage.siglnimgUnsigned) { Graphics g = Graphics.FromImage(b); g.DrawRectangle(new Pen(Color.Red, 2), 0, 0, 200, 50); g.FillRectangle(new SolidBrush(Color.Thistle), 2, 2, 196, 46); g.DrawString(String.Format("{0} ({1})", psigsetup.SuggestedSigner, DateTime.Now.ToShortDateString()), new Font("Courier", 12), new SolidBrush(Color.MidnightBlue), new PointF(30, 16)); } picture = PictureConverter.ImageToPictureDisp( Image.FromHbitmap(b.GetHbitmap())); return(picture); }
public void VerifyXmlDsig( object QueryContinue, Office.SignatureSetup psigsetup, Office.SignatureInfo psiginfo, object XmlDsigStream, ref Office.ContentVerificationResults pcontverres, ref Office.CertificateVerificationResults pcertverres) { throw new Exception("The method or operation is not implemented."); }
public void ShowSignatureDetails( object ParentWindow, Office.SignatureSetup psigsetup, Office.SignatureInfo psiginfo, object XmlDsigStream, ref Office.ContentVerificationResults pcontverres, ref Office.CertificateVerificationResults pcertverres) { throw new Exception("The method or operation is not implemented."); }
public void SignXmlDsig( object QueryContinue, Office.SignatureSetup psigsetup, Office.SignatureInfo psiginfo, object XmlDsigStream) { throw new Exception("The method or operation is not implemented."); }
public void ShowSigningCeremony( object ParentWindow, Office.SignatureSetup psigsetup, Office.SignatureInfo psiginfo) { throw new Exception("The method or operation is not implemented."); }
public void NotifySignatureAdded( object ParentWindow, Office.SignatureSetup psigsetup, Office.SignatureInfo psiginfo) { throw new Exception("The method or operation is not implemented."); }
public void ShowSignatureSetup( object ParentWindow, Office.SignatureSetup psigsetup) { psigsetup.SuggestedSigner = "Andrew"; }