Пример #1
0
        static void InsertPayTo(Range range, StatementInfo info)
        {
            if (info.TotalBalance == 0)
            {
                range.Text = "";
            }
            else
            {
                range.Text = "To pay your balance securely by credit card, go to https://" + Config.DomainName + "/Donate.";
                range.InsertParagraphAfter();
                range.InsertAfter("Please make your checks payable to ");
                var subRange = range.AppendText(Config.LegalName);
                range.InsertAfter(", and mail your remittance to:");
                range.InsertParagraphAfter();
                subRange.Font.Bold = 1;

                subRange = range.AppendText(mailingAddress);
                range.InsertParagraphAfter();

                subRange.ParagraphFormat.LeftIndent = 36;
                subRange.ParagraphFormat.Alignment  = WdParagraphAlignment.wdAlignParagraphLeft;
            }
        }
        static void InsertPayTo(Range range, StatementInfo info)
        {
            if (info.TotalBalance == 0)
                range.Text = "";
            else {
                range.Text = "To pay your balance securely by credit card, go to https://" + Config.DomainName + "/Donate.";
                range.InsertParagraphAfter();
                range.InsertAfter("Please make your checks payable to ");
                var subRange = range.AppendText(Config.LegalName);
                range.InsertAfter(", and mail your remittance to:");
                range.InsertParagraphAfter();
                subRange.Font.Bold = 1;

                subRange = range.AppendText(mailingAddress);
                range.InsertParagraphAfter();

                subRange.ParagraphFormat.LeftIndent = 36;
                subRange.ParagraphFormat.Alignment = WdParagraphAlignment.wdAlignParagraphLeft;
            }
        }