Solved

C# form to test C# DLL?

Posted on 2003-12-11
31
1,046 Views
Last Modified: 2010-04-16
I've written a C# DLL.

Now I need some sample source for a C# form (application) that will allow me to test my C# DLL properties and methods.
0
Comment
Question by:knowlton
  • 19
  • 12
31 Comments
 
LVL 5

Author Comment

by:knowlton
ID: 9922619
Here is the source for the C# DLL:


using System;
using System.IO;
using System.Data;
using System.Data.SqlClient;

namespace BuyersFund

{
      namespace Communications
      {
            /// <summary>
            /// Summary description for Class1.
            /// </summary>
            public class CreateGiftNOMPP
            {
                  private string strFileName;
                  private string strFilePath;
                  private string strSQL;

                  private FileStream fsFileStream;
                  private StreamWriter swStreamWriter;
                  private SqlConnection myConnection;
                  private SqlDataAdapter mySqlDataAdapter;

                  //construtor
                  public CreateGiftNOMPP()
                  {
                        //
                        // TODO: Add constructor logic here
                        //
                        strSQL = "select top 1 entryLenderView.EntryID, entryLenderView.Buyer, " +
                        "entryLenderView.BuyerFirstName, entryLenderView.BuyerLastName, entryLenderView.CurAddr, " +
                        "entryLenderView.City, entryLenderView.State, entryLenderView.Zip, FormatMoney([Grant]) AS GrantAmount, " +
                        "FormatMoney([SSF]) AS SSFAmount, entryLenderView.company AS MC, entryLenderView.TentativeClosingDate AS TCD, " +
                        "entryLenderView.TitleAgency, entryLenderView.[Closing Agent] AS CA, entryLenderView.TitleFax, entryLenderView.loname as LO, entryLenderView.company as Lender, " +
                        "entryLenderView.FaxNumber as LenderFax, [SellerAddress] + [SellerCity] + [SellerCity] + [SellerState] + [SellerZip] AS PropertyAddress, " +
                        "entryLenderView.SellerCity, entryLenderView.SellerState, entryLenderView.SellerZip, entryLenderView.SellerAddress FROM entryLenderView WHERE entryLenderView.EntryID= 3";

                        myConnection = new SqlConnection("server=itdev;Trusted_Connection=yes;database=Pipeline");
                        mySqlDataAdapter = new SqlDataAdapter(strSQL, myConnection);
                  }

                  public string FileName
                  {
                        set
                        {
                              strFileName = value;
                        }
                        get
                        {
                              return strFileName;
                        }
                  }

                  public string FilePath
                  {
                        set
                        {
                              strFilePath = value;
                        }
                        get
                        {
                              return strFilePath;
                        }
                  }

                  public void CreateTFile()
                  {
                        fsFileStream = new FileStream(strFilePath + "\\" + strFileName, FileMode.OpenOrCreate, FileAccess.ReadWrite);
                  }

                  public void WriteToTFile(string newinfo)
                  {
                        swStreamWriter = new StreamWriter(fsFileStream); // create a stream writer
                        swStreamWriter.BaseStream.Seek(0, SeekOrigin.End); // set the file pointer to the end of file
                        swStreamWriter.Write("Log Entry : \r\n");
                        swStreamWriter.Write("{0} {1} \r\n",DateTime.Now.ToLongTimeString(), DateTime.Now.ToLongDateString());
                        swStreamWriter.WriteLine("--Log entry goes here--");
                        swStreamWriter.WriteLine(newinfo);
                        swStreamWriter.WriteLine(newinfo);
                        swStreamWriter.WriteLine(newinfo);
                        swStreamWriter.WriteLine("Wrote it 3 times");
                        swStreamWriter.WriteLine("");
                        swStreamWriter.WriteLine("");
                        swStreamWriter.Write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">");


                        swStreamWriter.Flush(); // update underlying file
                        swStreamWriter.Close();
                  }

                  public void CreateGift()
                  {
                        swStreamWriter = new StreamWriter(fsFileStream); // create a stream writer
                        swStreamWriter.BaseStream.Seek(0, SeekOrigin.End); // set the file pointer to the end of file

                        try
                        {
                              DataSet myDataSet = new DataSet();

                              mySqlDataAdapter.Fill(myDataSet,"Customers");

                              foreach (DataRow myDataRow in myDataSet.Tables["Customers"].Rows)
                              {
                                    swStreamWriter.WriteLine("{\\rtf1\\ansi\\deff0\\adeflang1025");
                                    swStreamWriter.WriteLine("{\\fonttbl{\\f0\\froman\\fprq2\\fcharset0 Times New Roman;}{\\f1\\froman\\fprq2\\fcharset0 Times New Roman;}{\\f2\\froman\\fprq2\\fcharset0 Times New Roman;}{\\f3\\fswiss\\fprq2\\fcharset0 Arial;}{\\f4\\fswiss\\fprq2\\fcharset0 Tahoma;}{\\f5\\froman\\fprq2\\fcharset0 Garamond;}{\\f6\\fswiss\\fprq2\\fcharset0 Verdana;}{\\f7\\fnil\\fprq2\\fcharset0 Lucida Sans Unicode;}{\\f8\\fnil\\fprq2\\fcharset0 Tahoma;}{\\f9\\fnil\\fprq0\\fcharset0 Tahoma;}}");
                                    swStreamWriter.WriteLine("{\\colortbl;\\red0\\green0\\blue0;\\red0\\green0\\blue255;\\red0\\green255\\blue0;\\red128\\green128\\blue128;}");
                                    swStreamWriter.WriteLine("{\\stylesheet{\\s1{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\ql\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033\\snext1 Default;}");
                                    swStreamWriter.WriteLine("{\\s2\\sa120\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f0\\fs24\\lang1033\\sbasedon1\\snext2 Text body;}");
                                    swStreamWriter.WriteLine("{\\s3\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\rtlch\\af9\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f0\\fs24\\lang1033\\sbasedon2\\snext3 List;}");
                                    swStreamWriter.WriteLine("{\\s4\\sb120\\sa120\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\rtlch\\af9\\afs20\\lang255\\ai\\ltrch\\dbch\\af7\\afs20\\langfe255\\ai\\loch\\f0\\fs20\\lang1033\\i\\sbasedon1\\snext4 Caption;}");
                                    swStreamWriter.WriteLine("{\\s5\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\rtlch\\af9\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f0\\fs24\\lang1033\\sbasedon1\\snext5 Index;}");
                                    swStreamWriter.WriteLine("{\\s6\\cf0\\tqc\\tx4320\\tqr\\tx8640{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f0\\fs24\\lang1033\\sbasedon1\\snext6 Header;}");
                                    swStreamWriter.WriteLine("{\\s7\\cf0\\tqc\\tx4320\\tqr\\tx8640{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f0\\fs24\\lang1033\\sbasedon1\\snext7 Footer;}");
                                    swStreamWriter.WriteLine("{\\s8\\sb240\\sa60\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\rtlch\\af8\\afs20\\lang255\\ltrch\\dbch\\af7\\afs20\\langfe255\\loch\\f0\\fs20\\lang1033\\sbasedon1\\snext8 Fax Header;}");
                                    swStreamWriter.WriteLine("{\\s9\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\rtlch\\af4\\afs16\\lang255\\ltrch\\dbch\\af7\\afs16\\langfe255\\loch\\f4\\fs16\\lang1033\\sbasedon1\\snext9 Balloon Text;}");
                                    swStreamWriter.WriteLine("{\\s10\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\cf0\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\rtlch\\af8\\afs22\\lang255\\ltrch\\dbch\\af7\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033\\sbasedon1\\snext10 WW-Block Text;}");
                                    swStreamWriter.WriteLine("{\\s11\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f0\\fs24\\lang1033\\sbasedon2\\snext11 Table Contents;}");
                                    swStreamWriter.WriteLine("{\\s12\\cf0\\qc{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\rtlch\\af8\\afs24\\lang255\\ai\\ab\\ltrch\\dbch\\af7\\afs24\\langfe255\\ai\\ab\\loch\\f0\\fs24\\lang1033\\i\\b\\sbasedon11\\snext12 Table Heading;}");
                                    swStreamWriter.WriteLine("{\\*\\cs14\\cf0\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f0\\fs24\\lang1033 WW-Default Paragraph Font;}");
                                    swStreamWriter.WriteLine("{\\*\\cs15\\cf2\\ul\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f0\\fs24\\lang1033\\sbasedon14 Internet Link;}");
                                    swStreamWriter.WriteLine("{\\*\\cs16\\cf0\\rtlch\\af3\\afs24\\lang255\\ltrch\\dbch\\af7\\afs18\\langfe255\\ab\\loch\\f3\\fs18\\lang1033\\b Message Header Label;}");
                                    swStreamWriter.WriteLine("{\\*\\cs17\\cf0\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f0\\fs24\\lang1033\\sbasedon14 Page Number;}");
                                    swStreamWriter.WriteLine("{\\*\\cs18\\cf0\\rtlch\\af8\\afs24\\lang255\\ab\\ltrch\\dbch\\af7\\afs24\\langfe255\\ab\\loch\\f0\\fs24\\lang1033\\b\\sbasedon14 Strong Emphasis;}");
                                    swStreamWriter.WriteLine("}");
                                    swStreamWriter.WriteLine("{\\info{\\title Facsimile Cover Page}{\\author JasonS}{\\creatim\\yr2003\\mo11\\dy6\\hr12\\min41}{\\operator Tom Knowlton}{\\revtim\\yr2003\\mo11\\dy25\\hr15\\min32}{\\printim\\yr2003\\mo5\\dy30\\hr9\\min14}{\\comment StarWriter}{\\vern6450}}\\deftab720");
                                    swStreamWriter.WriteLine("{\\*\\pgdsctbl");
                                    swStreamWriter.WriteLine("{\\pgdsc0\\pgdscuse195\\pgwsxn12240\\pghsxn15840\\marglsxn576\\margrsxn504\\margtsxn576\\margbsxn1008\\headery0{\\*\\headeryb437\\headerxl0\\headerxr0\\headeryh720}{\\header \\pard\\plain \\s6\\cf0\\qr\\tqc\\tx4320\\tqr\\tx8640{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f0\\fs24\\lang1033{\\*\\flyinpara");
                                    swStreamWriter.WriteLine("\\pard\\plain\\absw2851\\absh-1226\\pvpara\\posyt{\\*\\flyvert27553\\flyanchor1\\flycntnt}{{\\field\\fldpriv{\\*\\fldinst{\\import GiftLetter_LN_Welcome_NOMPP_English_rtf_3854b5d0.jpg}}{\\fldrslt }}}");
                                    swStreamWriter.WriteLine("\\pard");
                                    swStreamWriter.WriteLine("}");
                                    swStreamWriter.WriteLine("\\par }");
                                    swStreamWriter.WriteLine("\\footery0{\\*\\footeryt5\\footerxl0\\footerxr0\\footeryh288}{\\footer \\pard\\plain \\s1{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\margtsxn60\\margbsxn0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033{\\loch\\f6\\fs16\\lang1033\\i0\\b0\\fs16\\f6{\\cf3 }}{\\loch\\f6\\fs16\\lang1033\\fs16\\fs16\\fs16\\f63575 North 100 East\\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab www.buyersfund.com}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\s1{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\margtsxn60\\margbsxn0\\rtlch\\af0\\afs16\\lang1025\\ltrch\\dbch\\af0\\afs16\\langfe255\\loch\\f6\\fs16\\lang1033 {\\loch\\f6\\fs16\\lang1033\\i0\\b0 Suite 250\\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab             Phone: 888-228-2279}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\pard\\plain\\absw1440\\absh660\\dfrmtxtx181\\pvpara\\posy4294966877\\phcol\\posx7380{\\*\\flymaincnt194\\flyvert41152\\flyhorz4096\\flyanchor0\\flycntnt}{{\\field\\fldpriv{\\*\\fldinst{\\import GiftLetter_LN_Welcome_NOMPP_English_rtf_2f3ac25a.jpg}}{\\fldrslt }}}");
                                    swStreamWriter.WriteLine("\\pard");
                                    swStreamWriter.WriteLine("{}{\\lang1024}{\\loch\\f6\\fs16\\lang1033\\i0\\b0 Provo, Utah 84604\\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab    Fax: 888-523-8983}");
                                    swStreamWriter.WriteLine("\\par }");
                                    swStreamWriter.WriteLine("\\pgdscnxt0 Default;}}");
                                    swStreamWriter.WriteLine("{\\*\\pgdscno0}\\paperh15840\\paperw12240\\margl576\\margr504\\margt576\\margb1008\\sectd\\sbknone\\pgwsxn12240\\pghsxn15840\\marglsxn576\\margrsxn504\\margtsxn1801\\margbsxn1956\\headery576{\\header \\pard\\plain \\s6\\cf0\\qr\\tqc\\tx4320\\tqr\\tx8640{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f0\\fs24\\lang1033{\\*\\flyinpara");
                                    swStreamWriter.WriteLine("\\pard\\plain\\absw2851\\absh-1226\\pvpara\\posyt{\\*\\flyvert27553\\flyanchor1\\flycntnt}{{\\field\\fldpriv{\\*\\fldinst{\\import GiftLetter_LN_Welcome_NOMPP_English_rtf_3854b5d0.jpg}}{\\fldrslt }}}");
                                    swStreamWriter.WriteLine("\\pard");
                                    swStreamWriter.WriteLine("}");
                                    swStreamWriter.WriteLine("\\par }");
                                    swStreamWriter.WriteLine("\\footery1008{\\footer \\pard\\plain \\s1{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\margtsxn1285\\margbsxn948\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033{\\loch\\f6\\fs16\\lang1033\\i0\\b0\\fs16\\f6{\\cf3 }}{\\loch\\f6\\fs16\\lang1033\\fs16\\fs16\\fs16\\f63575 North 100 East\\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab www.buyersfund.com}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\s1{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\margtsxn1285\\margbsxn948\\rtlch\\af0\\afs16\\lang1025\\ltrch\\dbch\\af0\\afs16\\langfe255\\loch\\f6\\fs16\\lang1033 {\\loch\\f6\\fs16\\lang1033\\i0\\b0 Suite 250\\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab             Phone: 888-228-2279}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\pard\\plain\\absw1440\\absh660\\dfrmtxtx181\\pvpara\\posy4294966877\\phcol\\posx7380{\\*\\flymaincnt194\\flyvert41152\\flyhorz4096\\flyanchor0\\flycntnt}{{\\field\\fldpriv{\\*\\fldinst{\\import GiftLetter_LN_Welcome_NOMPP_English_rtf_2f3ac25a.jpg}}{\\fldrslt }}}");
                                    swStreamWriter.WriteLine("\\pard");
                                    swStreamWriter.WriteLine("{}{\\lang1024}{\\loch\\f6\\fs16\\lang1033\\i0\\b0 Provo, Utah 84604\\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab \\tab    Fax: 888-523-8983}");
                                    swStreamWriter.WriteLine("\\par }");
                                    swStreamWriter.WriteLine("\\ftnbj\\ftnstart1\\ftnrstcont\\ftnnar\\aenddoc\\aftnrstcont\\aftnstart1\\aftnnrlc");
                                    swStreamWriter.WriteLine("\\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\f5\\fs24\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs40\\lang1025\\ltrch\\dbch\\af0\\afs40\\langfe255\\ab\\loch\\f6\\fs40\\lang1033\\b {\\loch\\f6\\fs40\\lang1033\\i0\\b Buyers Fund Gift Letter}");
                                    swStreamWriter.WriteLine("\\par \\trowd\\trql\\trleft1087\\trpaddft3\\trpaddt0\\trpaddfl3\\trpaddl0\\trpaddfb3\\trpaddb0\\trpaddfr3\\trpaddr0\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx2497\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx6143\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx7188\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx11160");
                                    swStreamWriter.WriteLine("\\pard\\intbl\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs20\\lang255\\ltrch\\dbch\\af7\\afs20\\langfe255\\loch\\f0\\fs20\\lang1033{\\loch\\f5\\fs24\\lang1033\\i0\\b\\*\\cs16\\cf0\\rtlch\\ltrch\\dbch\\loch\\f3\\fs18\\lang1033\\b\\fs24\\f5 To:}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\ab\\loch\\f5\\fs24\\lang1033\\b {\\loch\\f5\\fs24\\lang1033\\i0\\b " + myDataRow["LO"].ToString() + "}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs20\\lang255\\ltrch\\dbch\\af7\\afs20\\langfe255\\loch\\f0\\fs20\\lang1033{\\loch\\f5\\fs24\\lang1033\\i0\\b\\*\\cs16\\cf0\\rtlch\\ltrch\\dbch\\loch\\f3\\fs18\\lang1033\\b\\fs24\\f5 From:}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f5\\fs24\\lang1033 {\\loch\\f5\\fs24\\lang1033\\i0\\b0 Buyers Fund}");
                                    swStreamWriter.WriteLine("\\cell\\row\\pard \\trowd\\trql\\trleft1087\\trpaddft3\\trpaddt0\\trpaddfl3\\trpaddl0\\trpaddfb3\\trpaddb0\\trpaddfr3\\trpaddr0\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx2497\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx6143\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx7188\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx11160");
                                    swStreamWriter.WriteLine("\\pard\\intbl\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs20\\lang255\\ltrch\\dbch\\af7\\afs20\\langfe255\\loch\\f0\\fs20\\lang1033{\\loch\\f5\\fs24\\lang1033\\i0\\b\\*\\cs16\\cf0\\rtlch\\ltrch\\dbch\\loch\\f3\\fs18\\lang1033\\b\\fs24\\f5 Fax:}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\ab\\loch\\f5\\fs24\\lang1033\\b {\\loch\\f5\\fs24\\lang1033\\i0\\b " + myDataRow["LenderFax"].ToString() + "}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs20\\lang255\\ltrch\\dbch\\af7\\afs20\\langfe255\\loch\\f0\\fs20\\lang1033{\\loch\\f5\\fs24\\lang1033\\i0\\b{\\*\\cs16\\cf0\\rtlch\\ltrch\\dbch\\loch\\f3\\fs18\\lang1033\\b\\fs24\\f5 Fax}}{\\loch\\f0\\fs20\\lang1033{\\fs24\\f5 :}}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f5\\fs24\\lang1033 {\\loch\\f5\\fs24\\lang1033\\i0\\b0 888-523-8983; 801-734-1364}");
                                    swStreamWriter.WriteLine("\\cell\\row\\pard \\trowd\\trql\\trleft1087\\trpaddft3\\trpaddt0\\trpaddfl3\\trpaddl0\\trpaddfb3\\trpaddb0\\trpaddfr3\\trpaddr0\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx2497\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx6143\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx7188\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx11160");
                                    swStreamWriter.WriteLine("\\pard\\intbl\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs20\\lang255\\ltrch\\dbch\\af7\\afs20\\langfe255\\loch\\f0\\fs20\\lang1033{\\loch\\f5\\fs24\\lang1033\\i0\\b\\*\\cs16\\cf0\\rtlch\\ltrch\\dbch\\loch\\f3\\fs18\\lang1033\\b\\fs24\\f5 Company:}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\ab\\loch\\f5\\fs24\\lang1033\\b {\\loch\\f5\\fs24\\lang1033\\i0\\b " + myDataRow["Lender"].ToString() + "}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs20\\lang255\\ltrch\\dbch\\af7\\afs20\\langfe255\\loch\\f0\\fs20\\lang1033{\\loch\\f5\\fs24\\lang1033\\i0\\b\\*\\cs16\\cf0\\rtlch\\ltrch\\dbch\\loch\\f3\\fs18\\lang1033\\b\\fs24\\f5 Phone:}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li173\\ri0\\lin173\\rin0\\fi-173\\sb240\\sa60\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f5\\fs24\\lang1033 {\\loch\\f5\\fs24\\lang1033\\i0\\b0 888-228-2279}");
                                    swStreamWriter.WriteLine("\\cell\\row\\pard \\trowd\\trql\\trleft1087\\trpaddft3\\trpaddt0\\trpaddfl3\\trpaddl0\\trpaddfb3\\trpaddb0\\trpaddfr3\\trpaddr0\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx2497\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx6143\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx7188\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx11160");
                                    swStreamWriter.WriteLine("\\pard\\intbl\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs20\\lang255\\ltrch\\dbch\\af7\\afs20\\langfe255\\loch\\f0\\fs20\\lang1033{\\loch\\f5\\fs24\\lang1033\\i0\\b\\*\\cs16\\cf0\\rtlch\\ltrch\\dbch\\loch\\f3\\fs18\\lang1033\\b\\fs24\\f5 Sent:}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f5\\fs24\\lang1033{\\field{\\*\\fldinst \\date \\@\\\"tt.MM.yy\\\"}{\\fldrslt 11/25/2003 3:32:55 pm}}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\ab\\loch\\f5\\fs24\\lang1033\\b {\\loch\\f5\\fs24\\lang1033\\i0\\b Pages:}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs24\\lang255\\ltrch\\dbch\\af7\\afs24\\langfe255\\loch\\f5\\fs24\\lang1033 {\\loch\\f5\\fs24\\lang1033\\i0\\b0 3, including cover}");
                                    swStreamWriter.WriteLine("\\cell\\row\\pard \\trowd\\trql\\trleft1087\\trpaddft3\\trpaddt0\\trpaddfl3\\trpaddl0\\trpaddfb3\\trpaddb0\\trpaddfr3\\trpaddr0\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx2497\\clbrdrb\\brdrs\\brdrw1\\brdrcf1\\clvertalt\\cellx11160");
                                    swStreamWriter.WriteLine("\\pard\\intbl\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs20\\lang255\\ltrch\\dbch\\af7\\afs20\\langfe255\\loch\\f0\\fs20\\lang1033{\\loch\\f5\\fs24\\lang1033\\i0\\b\\*\\cs16\\cf0\\rtlch\\ltrch\\dbch\\loch\\f3\\fs18\\lang1033\\b\\fs24\\f5 Subject:}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s8\\cf0{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\sb240\\sa60\\rtlch\\af8\\afs20\\lang255\\ltrch\\dbch\\af7\\afs20\\langfe255\\loch\\f0\\fs20\\lang1033{\\loch\\f5\\fs24\\lang1033\\i0\\b0\\fs24\\f5 Gift Letter for{\\b  " + myDataRow["Buyer"] + ", #" + myDataRow["EntryID"] + "]}");
                                    swStreamWriter.WriteLine("\\cell\\row\\pard \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs28\\lang1025\\ltrch\\dbch\\af0\\afs28\\langfe255\\ab\\loch\\f6\\fs28\\lang1033\\b {\\loch\\f6\\fs28\\lang1033\\i0\\b Message:}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033{\\loch\\f5\\fs22\\lang1033\\i0\\b0\\fs22\\f5 Dear {\\b " + myDataRow["LO"] + "},}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 Thank you for the new grant application.}");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 We appreciate your business.}");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 We will contact the title company today to send out closing instructions.}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 Sincerely,}");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 Buyers Fund Processing Department}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\ab\\loch\\f5\\fs22\\lang1033\\b {\\loch\\f5\\fs22\\lang1033\\i0\\b Gift Letter Instructions:}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 1. To validate the Gift Letter, have the home buyer sign it. This must be done before using it as proof of down payment (i.e. with FHA).}");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 2. You do not need to send the gift letter back to us. This letter is to be presented to the homebuyer, and copies of it are to be used as you see fit.}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033{\\loch\\f5\\fs22\\lang1033\\i0\\b0\\fs22\\f5 3. The grant your buyer has been approved for is {\\b " + myDataRow["GrantAmount"].ToString() + "}.}");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0\\fs22\\f5 4. The seller service fee paid by the seller to Buyers Fund is the grant ({\\b " + myDataRow["GrantAmount"].ToString() + "}) {\\i and} the net fee.}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\f5\\fs24\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033{\\field{\\*\\fldinst \\date \\@\\\"tt.MM.yy\\\"}{\\fldrslt November 25, 2003}}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\ab\\loch\\f5\\fs22\\lang1033\\b {\\loch\\f5\\fs22\\lang1033\\i0\\b " + myDataRow["Buyer"] + "}");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b " + myDataRow["CurAddr"] + "}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033{\\loch\\f5\\fs22\\lang1033\\i0\\b\\b\\fs22\\f5 " + myDataRow["City"].ToString()  + "  " + myDataRow["State"].ToString() + "  " + myDataRow["Zip"].ToString() + "}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 \\");
                                    swStreamWriter.WriteLine("\\par \\trowd\\trql\\trleft972\\trpaddft3\\trpaddt0\\trpaddfl3\\trpaddl108\\trpaddfb3\\trpaddb0\\trpaddfr3\\trpaddr108\\clvertalc\\cellx6609\\clvertalc\\cellx11160");
                                    swStreamWriter.WriteLine("\\pard\\intbl\\pard\\plain \\intbl\\ltrpar\\s1{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li0\\ri1080\\lin0\\rin1080\\fi0\\ql\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033{\\loch\\f5\\fs22\\lang1033\\i0\\b0\\fs22\\f5 Dear {\\b " + myDataRow["BuyerFirstName"].ToString() + ",}}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s1\\qr{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li0\\ri79\\lin0\\rin79\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033{\\loch\\f5\\fs22\\lang1033\\i0\\b0\\fs22\\f5 Grant No.: {\\b " + myDataRow["EntryID"].ToString() + "}}");
                                    swStreamWriter.WriteLine("\\cell\\row\\pard \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033{\\loch\\f5\\fs22\\lang1033\\i0\\b0\\fs22\\f5 Buyers Fund is pleased to inform you that you have been approved to receive a grant in the amount of {\\b " + myDataRow["GrantAmount"].ToString() + "}, which will be used towards the purchase of your home.}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 The Buyers Fund grant has been provided to you as a bona-fide gift and there is no obligation of repayment of funds. The Buyers Fund grant is provided with the condition that you complete the purchase of your home as set forth in the real estate purchase a");
                                    swStreamWriter.WriteLine("greement signed and dated by you. This is not a second mortgage and a lien will not be placed against the property.}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 The funds given to you are not in any way from the seller or builder, realtor, or lender or any other person interested or involved in the transaction. The funds come from a non-profit 501(c)(3) corporation. Our tax ID # is: 87-0635224. The funds will be w");
                                    swStreamWriter.WriteLine("ired to the title company prior to recording. The title company will be instructed to include evidence of the receipt of your gift to be included in the lender\\rquote s loan package.}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 Congratulations on the purchase of your new home. Our office will be in contact with you and you lender to complete the closing.}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 Sincerely,}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033{\\*\\flyinpara");
                                    swStreamWriter.WriteLine("\\pard\\plain\\absw2150\\absh-574\\pvpara\\posyt{\\*\\flyvert12801\\flyanchor1\\flycntnt}");
                                    swStreamWriter.WriteLine("\\par\\pard");
                                    swStreamWriter.WriteLine("}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 Joseph Dewey}");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 President}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 cc: Lender}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 Property being purchased with grant:}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033{\\loch\\f5\\fs22\\lang1033\\i0\\b0\\fs22\\f5 Street Address:\\tab {\\b " + myDataRow["SellerAddress"].ToString() + "}}");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0\\fs22\\f5 City, State, Zip:\\tab {\\b " + myDataRow["SellerCity"].ToString() + "  " + myDataRow["SellerState"].ToString() + "  " + myDataRow["SellerZip"].ToString() + "}}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par \\trowd\\trql\\trleft972\\trpaddft3\\trpaddt0\\trpaddfl3\\trpaddl108\\trpaddfb3\\trpaddb0\\trpaddfr3\\trpaddr108\\clvertalt\\cellx4818\\clvertalt\\cellx8705\\clvertalt\\cellx11160");
                                    swStreamWriter.WriteLine("\\pard\\intbl\\pard\\plain \\intbl\\ltrpar\\s1\\qj\\tx3221{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 {\\loch\\f5\\fs22\\lang1033\\i0\\b0 __________________________}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s1\\qj\\tx3258{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 {\\loch\\f5\\fs22\\lang1033\\i0\\b0 ____________________________}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s1\\qj\\tx1949{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li0\\ri79\\lin0\\rin79\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 {\\loch\\f5\\fs22\\lang1033\\i0\\b0 ____/_____/______}");
                                    swStreamWriter.WriteLine("\\cell\\row\\pard \\trowd\\trql\\trleft972\\trpaddft3\\trpaddt0\\trpaddfl3\\trpaddl108\\trpaddfb3\\trpaddb0\\trpaddfr3\\trpaddr108\\clvertalt\\cellx4818\\clvertalt\\cellx8705\\clvertalt\\cellx11160");
                                    swStreamWriter.WriteLine("\\pard\\intbl\\pard\\plain \\intbl\\ltrpar\\s1\\qc{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li0\\ri1080\\lin0\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 {\\loch\\f5\\fs22\\lang1033\\i0\\b0 Buyer}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s1\\qc{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li0\\ri1080\\lin0\\rin1080\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033{\\loch\\f5\\fs22\\lang1033\\i0\\b0\\fs22\\f5 Buyer}");
                                    swStreamWriter.WriteLine("\\cell\\pard\\plain \\intbl\\ltrpar\\s1\\qc{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li0\\ri1080\\lin0\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 {\\loch\\f5\\fs22\\lang1033\\i0\\b0 Date}");
                                    swStreamWriter.WriteLine("\\cell\\row\\pard \\pard\\plain \\ltrpar\\s1{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\ql\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 **SuppressWelcomeLetter**}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par {\\field{\\*\\fldinst \\date \\@\"tt.MM.yy\"}{\\fldrslt November 25, 2003}}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 {\\loch\\f5\\fs22\\lang1033\\i0\\b0 Dear " + myDataRow["LO"].ToString() + ",}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033{\\loch\\f5\\fs22\\lang1033\\i0\\b0\\f5{{\\fs22 Welcome to our team, and thank you for choosing the Neighborhood Gold}}}{\\fs22{\\loch\\f5\\fs24\\lang1033\\f5{\\fs16 \\'99}{\\fs22 /Buyer\\rquote s Fund, Inc}{\\fs16 .}}}{\\fs16\\fs16{\\loch\\f5\\fs16\\lang1033\\f5{{{\\*\\updnprop5801}\\up7\\scaps SM}}{\\fs16 }}{\\fs22 program! Our records indicate that you have successfully submitted your first grant application.}}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s10\\cf0\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af8\\afs22\\lang255\\ltrch\\dbch\\af7\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 {\\loch\\f5\\fs22\\lang1033\\i0\\b0 It\\rquote s important to me that your clients get what they need in order to fulfill their dream of homeownership. The following information will help you familiarize yourself with our program, and together we can make your client\\rquote s dream a reality. }");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033{\\loch\\f5\\fs22\\lang1033\\i0\\b0{\\fs22\\f5 First of all, if you have not already done so, please create an account on the new online Grant Processing System (GPS). GPS allows you to view the status of all your grants, make needed changes to your grants, print approval letters, and even view a detai");
                                    swStreamWriter.WriteLine("led transaction log of each grant. We are still ready and willing to assist you over the phone, but we feel that GPS will empower you with the ability to manage your grants at your convenience and at any time. To create a GPS account, please go to }}{\\loch\\f0\\fs24\\lang1033{\\field{\\*\\fldinst HYPERLINK \"http://www.buyersfund.com/gps\" }{\\fldrslt \\*\\cs15\\cf2\\ul\\rtlch\\ltrch\\dbch\\loch\\f0\\fs24\\lang1033{\\*\\cs15\\cf2\\ul\\rtlch\\ltrch\\dbch\\loch\\f0\\fs24\\lang1033\\fs22\\f5 www.buye");
                                    swStreamWriter.WriteLine("rsfund.com/gps}}}{\\fs22\\f5 , or contact tech support at (888) 228-2279 ext. 207.}}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs22\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 If you should have questions about GPS or any matter related to your grants, our processing department is fully staffed and prepared to help you. The processing department can accommodate both English- and Spanish-speaking customers, and is available 7 a.m");
                                    swStreamWriter.WriteLine(". to 6 p.m. MST. Please contact our processors at (888) 228-2279 ext. 1.}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 In addition to helping you with processing questions, our corporate office can help you locate your account executive, provide marketing materials, or answer any questions you might have regarding our program. Should you require assistance please call corp");
                                    swStreamWriter.WriteLine("orate headquarters at (888) 228-2279.}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 Thank you once again for choosing the Neighborhood Gold/Buyers Fund program and I look forward to our working together.}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 Sincerely,}");
                                    swStreamWriter.WriteLine("\\par ");
                                    swStreamWriter.WriteLine("\\par {\\*\\flyinpara");
                                    swStreamWriter.WriteLine("\\pard\\plain\\absw2190\\absh-540\\pvpara\\posyt{\\*\\flyvert12801\\flyanchor1\\flycntnt}{{\\field\\fldpriv{\\*\\fldinst{\\import GiftLetter_LN_Welcome_NOMPP_English_rtf_23160e37.png}}{\\fldrslt }}}");
                                    swStreamWriter.WriteLine("\\pard");
                                    swStreamWriter.WriteLine("}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs22\\langfe255\\loch\\f5\\fs22\\lang1033 ");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 Joseph Dewey}");
                                    swStreamWriter.WriteLine("\\par {\\loch\\f5\\fs22\\lang1033\\i0\\b0 President}");
                                    swStreamWriter.WriteLine("\\par \\pard\\plain \\ltrpar\\s1\\qj{\\*\\hyphen2\\hyphlead2\\hyphtrail2\\hyphmax0}\\li1080\\ri1080\\lin1080\\rin1080\\fi0\\rtlch\\af0\\afs24\\lang1025\\ltrch\\dbch\\af0\\afs24\\langfe255\\loch\\fs24\\lang1033 {\\*\\bkmkstart suppress_welcome_letter}{\\*\\bkmkend suppress_welcome_letter}");
                                    swStreamWriter.WriteLine("\\par }");
                                    swStreamWriter.Flush(); // update underlying file
                                    swStreamWriter.Close();
                              }
                        }
                        catch(Exception e)
                        {
                              Console.WriteLine(e.ToString());
                        }//END of try...catch

                  }//END of function CreateGift()

            }// END of class CreateGiftNOMPP

      }//END of namespace Communications

}//END of namespace BuyersFund
0
 
LVL 69

Expert Comment

by:Callandor
ID: 9922707
Why not create a main class that calls your functions and step through them with the debugger?
0
 
LVL 5

Author Comment

by:knowlton
ID: 9922715
Can I do that with a ClassLibrary???
0
 
LVL 5

Author Comment

by:knowlton
ID: 9922736
Please show my what my NEW source would look like (just a skeleton):

Would it be something like:

public shared sub Main()
    Dim myGiftTest as CreateGiftNOMPP
    myGiftTest = new CreateGiftNOMPP()
    myGiftTest.CreateGift()
end sub


????
0
 
LVL 5

Author Comment

by:knowlton
ID: 9922740
Or in C#:

public static void Main()
  {
   myGiftTest = new CreateGiftNOMPP()
   myGiftTest.CreateGift();
  }

???
0
 
LVL 69

Expert Comment

by:Callandor
ID: 9922762
Ok, I just looked at one of my projects and it has a Form1.cs, so if you use Project->Add Windows Form and select the Windows Form, it will create a Form class with a Main() method in it.  You can customize it to call your functions directly from there, or add menus to the form to do it whenever the menuitem is selected.
0
 
LVL 5

Author Comment

by:knowlton
ID: 9922771
I go Project->Ad Windows Form in my Class Library project?
0
 
LVL 5

Author Comment

by:knowlton
ID: 9922796
I added a Windows Form to my Class Library.

I created an instance of the class, like this:

                  cGift = BuyersFund.Communications.CreateGiftNOMPP();
                  cGift.
but cGift does not auto code complete with my Class methods, like CreateGift();




Here is the source:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace bf_faxcom
{
      /// <summary>
      /// Summary description for Form1.
      /// </summary>
      public class Form1 : System.Windows.Forms.Form
      {
            /// <summary>
            /// Required designer variable.
            /// </summary>
            private System.ComponentModel.Container components = null;

            public Form1()
            {
                  //
                  // Required for Windows Form Designer support
                  //
                  InitializeComponent();

                  //
                  // TODO: Add any constructor code after InitializeComponent call
                  //
            }

            /// <summary>
            /// Clean up any resources being used.
            /// </summary>
            protected override void Dispose( bool disposing )
            {
                  if( disposing )
                  {
                        if(components != null)
                        {
                              components.Dispose();
                        }
                  }
                  base.Dispose( disposing );
            }

            #region Windows Form Designer generated code
            /// <summary>
            /// Required method for Designer support - do not modify
            /// the contents of this method with the code editor.
            /// </summary>
            private void InitializeComponent()
            {
                  //
                  // Form1
                  //
                  this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
                  this.ClientSize = new System.Drawing.Size(292, 273);
                  this.Name = "Form1";
                  this.Text = "Form1";
                  this.Load += new System.EventHandler(this.Form1_Load);

            }
            #endregion

            private void Form1_Load(object sender, System.EventArgs e)
            {
                  cGift = BuyersFund.Communications.CreateGiftNOMPP();
                  cGift.

            }
      }
}
0
 
LVL 69

Expert Comment

by:Callandor
ID: 9922841
No, create a new project.  You make the dll accessible by adding a reference to the library, under Solution Explorer->Your Project->References.  Then you create an instance of the class and call the functions.
0
 
LVL 5

Author Comment

by:knowlton
ID: 9922879
I have created a new project.

But I am having trouble creating a new instance of the class:

As you can see, I have added the DLL to my references in the new C# Application, and the namespace Communications is detected during the code completion.  But I cannot use cGift to access properties or methods of the class:

http://www.knowltonfamily.com/instance_of_class.gif


Tom
0
 
LVL 5

Author Comment

by:knowlton
ID: 9922923
See also:

http://www.knowltonfamily.com/CSharp_IDE.gif

to see what is going on.
0
 
LVL 69

Expert Comment

by:Callandor
ID: 9922987
Pretty good way to communicate what your screen is showing!

Have you included a "using myDLL;" statement in your test project?
0
 
LVL 5

Author Comment

by:knowlton
ID: 9923019
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using BuyersFund.Communications;




namespace AppToTestDLL
{
      /// <summary>
      /// Summary description for Form1.
      /// </summary>
      public class Form1 : System.Windows.Forms.Form
      {
            private System.Windows.Forms.Button button1;
            /// <summary>
            /// Required designer variable.
            /// </summary>
            private System.ComponentModel.Container components = null;

            public Form1()
            {
                  //
                  // Required for Windows Form Designer support
                  //
                  InitializeComponent();

                  //
                  // TODO: Add any constructor code after InitializeComponent call
                  //
            }

            /// <summary>
            /// Clean up any resources being used.
            /// </summary>
            protected override void Dispose( bool disposing )
            {
                  if( disposing )
                  {
                        if (components != null)
                        {
                              components.Dispose();
                        }
                  }
                  base.Dispose( disposing );
            }

            #region Windows Form Designer generated code
            /// <summary>
            /// Required method for Designer support - do not modify
            /// the contents of this method with the code editor.
            /// </summary>
            private void InitializeComponent()
            {
                  this.button1 = new System.Windows.Forms.Button();
                  this.SuspendLayout();
                  //
                  // button1
                  //
                  this.button1.Location = new System.Drawing.Point(112, 88);
                  this.button1.Name = "button1";
                  this.button1.TabIndex = 0;
                  this.button1.Text = "Test";
                  this.button1.Click += new System.EventHandler(this.button1_Click);
                  //
                  // Form1
                  //
                  this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
                  this.ClientSize = new System.Drawing.Size(292, 273);
                  this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                                                              this.button1});
                  this.Name = "Form1";
                  this.Text = "Form1";
                  this.ResumeLayout(false);

            }
            #endregion

            /// <summary>
            /// The main entry point for the application.
            /// </summary>
            [STAThread]
            static void Main()
            {
                  Application.Run(new Form1());
            }

            private void button1_Click(object sender, System.EventArgs e)
            {
                  cGift = new BuyersFund.Communications.CreateGiftNOMPP();
                  cGift.
                  
            }
      }
}
0
 
LVL 5

Author Comment

by:knowlton
ID: 9923023
I did this:

using BuyersFund.Communications;
0
 
LVL 69

Expert Comment

by:Callandor
ID: 9923130
I think you want cGift = new BuyersFund.Communications();
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 69

Expert Comment

by:Callandor
ID: 9923229
Correction:
BuyersFund.Communications cGift = new BuyersFund.Communications();
0
 
LVL 5

Author Comment

by:knowlton
ID: 9923243
private void button1_Click(object sender, System.EventArgs e)
            {
                  BuyersFund.Communications cGift = new BuyersFund.Communications();
                  cGift.
            }


Still says "Identifier expected" when I try and use the dot operator with cGift.
0
 
LVL 69

Accepted Solution

by:
Callandor earned 250 total points
ID: 9923407
Two suggestions:

move the construction of the DLL class to the Form1 class and make it static:

    public class Form1 : System.Windows.Forms.Form
    {
        static public BuyersFund.Communications cGift = new BuyersFund.Communications();

0
 
LVL 5

Author Comment

by:knowlton
ID: 9923597
Still same thing....
0
 
LVL 5

Author Comment

by:knowlton
ID: 9923603
Says:

N:\ClientDevelopment\NEO\BuyersFund\AppToTestDLL\Form1.cs(19): 'BuyersFund.Communications' denotes a 'namespace' where a 'class' was expected
0
 
LVL 5

Author Comment

by:knowlton
ID: 9923617
It compiles okay this way:



using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using BuyersFund.Communications;




namespace AppToTestDLL
{
      /// <summary>
      /// Summary description for Form1.
      /// </summary>
      public class Form1 : System.Windows.Forms.Form
      {
            static public BuyersFund.Communications.CreateGiftNOMPP cGift = new BuyersFund.Communications.CreateGiftNOMPP();

            private System.Windows.Forms.Button button1;
            /// <summary>
            /// Required designer variable.
            /// </summary>
            private System.ComponentModel.Container components = null;

            public Form1()
            {
                  //
                  // Required for Windows Form Designer support
                  //
                  InitializeComponent();

                  //
                  // TODO: Add any constructor code after InitializeComponent call
                  //
            }

            /// <summary>
            /// Clean up any resources being used.
            /// </summary>
            protected override void Dispose( bool disposing )
            {
                  if( disposing )
                  {
                        if (components != null)
                        {
                              components.Dispose();
                        }
                  }
                  base.Dispose( disposing );
            }

            #region Windows Form Designer generated code
            /// <summary>
            /// Required method for Designer support - do not modify
            /// the contents of this method with the code editor.
            /// </summary>
            private void InitializeComponent()
            {
                  this.button1 = new System.Windows.Forms.Button();
                  this.SuspendLayout();
                  //
                  // button1
                  //
                  this.button1.Location = new System.Drawing.Point(112, 88);
                  this.button1.Name = "button1";
                  this.button1.TabIndex = 0;
                  this.button1.Text = "Test";
                  this.button1.Click += new System.EventHandler(this.button1_Click);
                  //
                  // Form1
                  //
                  this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
                  this.ClientSize = new System.Drawing.Size(292, 273);
                  this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                                                              this.button1});
                  this.Name = "Form1";
                  this.Text = "Form1";
                  this.ResumeLayout(false);

            }
            #endregion

            /// <summary>
            /// The main entry point for the application.
            /// </summary>
            [STAThread]
            static void Main()
            {
                  Application.Run(new Form1());
            }

            private void button1_Click(object sender, System.EventArgs e)
            {
                  cGift.CreateGift();
            }
      }
}










Is this what you had in mind?
0
 
LVL 69

Expert Comment

by:Callandor
ID: 9923669
Yes, I forgot which was your class and which was your namespace (it was so far back).  I guess you're in business now!
0
 
LVL 5

Author Comment

by:knowlton
ID: 9923713
I think so.....
0
 
LVL 5

Author Comment

by:knowlton
ID: 9923808
It is working now....

Thanks for your help!!!!!!!!!

The RTF file is being created, but will not open in MS Word.  This falls outside the scope of THIS particular question....the DLL is definitely working, though.
0
 
LVL 69

Expert Comment

by:Callandor
ID: 9923819
Ok - good luck with the RTF!
0
 
LVL 5

Author Comment

by:knowlton
ID: 9923828
Thanks.

If you want to help me debug it....I'll offer more points....if you are bored....

Tom
0
 
LVL 69

Expert Comment

by:Callandor
ID: 9923866
Thanks, but I'm not up to speed on RTF formatting.  Someone else should be able to give you assistance, though.
0
 
LVL 5

Author Comment

by:knowlton
ID: 9923880
Any recommendations?  Maybe in the MS Word TA?
0
 
LVL 69

Expert Comment

by:Callandor
ID: 9924004
Definitely.  Give it a shot.
0
 
LVL 5

Author Comment

by:knowlton
ID: 9924009
Thanks again for your help.
0
 
LVL 69

Expert Comment

by:Callandor
ID: 9924019
You're welcome.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now