logic to support exe switch that will delay when Word will display the newly generated Placekeeper

This commit is contained in:
2015-02-19 03:53:45 +00:00
parent a6ed94d8c6
commit cbc3df3023
3 changed files with 37 additions and 4 deletions

View File

@@ -23,6 +23,11 @@ namespace Volian.Print.Library
_WordSel = _WordApp.Selection;
_pkFont = new VE_Font("Arial", 11, E_Style.None, 12); // Calvert uses Arial for their Placekeepers.
}
public void Visible()
{
_WordApp.Visible = true;
_WordApp.Activate();
}
//public Placekeeper(pkParagraph myPlacekeeper)
//{
// _WordApp = new LBApplicationClass();
@@ -53,7 +58,7 @@ namespace Volian.Print.Library
_WordApp = new LBApplicationClass();
_WordDoc = _WordApp.Documents.Add();
_WordSel = _WordApp.Selection;
_WordApp.Visible = true;
//_WordApp.Visible = true;
_pkFont = pkFont;
AddTable();
AddHeader();

View File

@@ -644,13 +644,19 @@ namespace Volian.Print.Library
// pkFont = ds.Font;
//}
if (_MyHelper.MyPlacekeepers.Count > 0)
new Placekeeper(_MyHelper.MyPlacekeepers, pkFont);
MyPlacekeeper = new Placekeeper(_MyHelper.MyPlacekeepers, pkFont);
}
_MyHelper = null;
ProfileTimer.Pop(profileDepth);
return outputFileName;
}
private Placekeeper _MyPlacekeeper = null;
public Placekeeper MyPlacekeeper
{
get { return _MyPlacekeeper; }
set { _MyPlacekeeper = value; }
}
public void CreateWordDocPdf(PdfContentByte cb, SectionInfo mySection, ref PdfReader readerWord, ref string myPdfFile)
{
int profileDepth = ProfileTimer.Push(">>>> CreateWordDocPdf");