예제 #1
0
        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);
        }
예제 #2
0
 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.");
 }
예제 #3
0
 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.");
 }
예제 #4
0
 public void SignXmlDsig(
     object QueryContinue, Office.SignatureSetup psigsetup,
     Office.SignatureInfo psiginfo, object XmlDsigStream)
 {
     throw new Exception("The method or operation is not implemented.");
 }
예제 #5
0
 public void ShowSigningCeremony(
     object ParentWindow, Office.SignatureSetup psigsetup, Office.SignatureInfo psiginfo)
 {
     throw new Exception("The method or operation is not implemented.");
 }
예제 #6
0
 public void NotifySignatureAdded(
     object ParentWindow, Office.SignatureSetup psigsetup, Office.SignatureInfo psiginfo)
 {
     throw new Exception("The method or operation is not implemented.");
 }
예제 #7
0
 public void ShowSignatureSetup(
     object ParentWindow, Office.SignatureSetup psigsetup)
 {
     psigsetup.SuggestedSigner = "Andrew";
 }