Added Enhanced Document Menus

SetAdministrator Support for Import and Export Procedure Sets, Import Procedure, Export Procedure
Added ROID PDF Destinations to Complete RO Report so that PDF Links can go to a specific Refenced Object in the Complete RO Report PDF.
Add PDF Links for Enhanced Documents and Complete RO Report
This commit is contained in:
Rich
2015-09-12 15:49:37 +00:00
parent a87decdbe3
commit 4c0fed9dce
4 changed files with 192 additions and 8 deletions

View File

@@ -375,6 +375,12 @@ namespace Volian.Print.Library
}
private string processingRO = "";
private string _MyROID = null;
public string MyROID
{
get { return _MyROID; }
set { _MyROID = value; }
}
public void PrintReport()
{
@@ -416,6 +422,9 @@ namespace Volian.Print.Library
case 7:
processingRO = KeyField();
break;
case 8:
MyROID = ROIDField();
break;
case 100: // Text Field - sometimes also XY Plot
Text();
Application.DoEvents();
@@ -825,6 +834,12 @@ namespace Volian.Print.Library
Chunk chk = LastHeader();
Phrase p = new Phrase();
PdfPCell cell = new PdfPCell();
if (MyROID != null)
{
chk.SetLocalDestination(string.Format("ROID={0}", MyROID)); // Destination
//Console.WriteLine("\"ROID\"\t\"{0}\"", MyROID);
MyROID = null;
}
p.Add(chk); // add the header chunk
cell.BackgroundColor = Color.WHITE;
cell.BorderColor = Color.WHITE;
@@ -880,6 +895,18 @@ namespace Volian.Print.Library
//Console.WriteLine("Key Text: {0}", szStr);
//Console.WriteLine("----------------------------------------------");
}
public string ROIDField()
{
// use the key field as the PDF bookbark
string szStr = RO_df.ReadText();
//PdfDestination pdfDest = new PdfDestination(PdfDestination.FITH, _MyPDFWriter.DirectContent.PdfDocument.PageSize.Height);
//PdfOutline outl = new PdfOutline(MyDocOutline[Hdrs.HdrCnt - 1].MyOutline, MyPdfDestTop, szStr);
//DestSample(outl);
return szStr;
//Console.WriteLine("Key Field");
//Console.WriteLine("Key Text: {0}", szStr);
//Console.WriteLine("----------------------------------------------");
}
// Read in the image filename, height, and width
public void ImageFile()