Fixed problem converting RO Tables

This commit is contained in:
John Jenko 2011-10-10 12:56:33 +00:00
parent e80a615fa6
commit 0a12c02129

View File

@ -89,7 +89,7 @@ namespace DataLoader
stptext = MigrateRos(cn, stptext, seqRoTran, content, docver, conv_caret, ref rotype); stptext = MigrateRos(cn, stptext, seqRoTran, content, docver, conv_caret, ref rotype);
stptext = stptext.TrimEnd(" ".ToCharArray()); stptext = stptext.TrimEnd(" ".ToCharArray());
// if this is a table RO, then save a flag in the config // if this is a table RO, then save a flag in the config
isROTable = (rotype == 2); isROTable = (rotype == 2 || rotype == 3);
} }
tokrt = Textm.IndexOf('\x3a6'); tokrt = Textm.IndexOf('\x3a6');
if (tokrt > -1) if (tokrt > -1)
@ -117,6 +117,8 @@ namespace DataLoader
string fixStpText = ""; string fixStpText = "";
if (IsATable(content.Type)) if (IsATable(content.Type))
{ {
//if (ProcNumber == "EOP-ES-1.2")
// Console.WriteLine("here");
bool hasBorder = !WithoutBorder(content.Type); bool hasBorder = !WithoutBorder(content.Type);
fixStpText = ConvertTableToGrid(stptext, content, fmt, isROTable, hasBorder ? GridLinePattern.Single : GridLinePattern.None ); fixStpText = ConvertTableToGrid(stptext, content, fmt, isROTable, hasBorder ? GridLinePattern.Single : GridLinePattern.None );
int? typ = ConvertTableType(content, fmt); int? typ = ConvertTableType(content, fmt);