Implement WriteToDocument method in Formatter.
This commit is contained in:
@ -70,7 +70,7 @@ namespace zaaReloaded2.Formatter
|
||||
/// Formats and writes the LabItem details to a word <paramref name="document"/>.
|
||||
/// </summary>
|
||||
/// <param name="document">Word document to write to.</param>
|
||||
public void WriteToDocument(Document document)
|
||||
public void WriteToDocument(Formatter formatter)
|
||||
{
|
||||
string reference;
|
||||
if (
|
||||
@ -134,7 +134,7 @@ namespace zaaReloaded2.Formatter
|
||||
}
|
||||
|
||||
// Insert the formatted text into the document.
|
||||
document.Range().InsertAfter(
|
||||
formatter.WriteToDocument(
|
||||
String.Format(
|
||||
"{0} {1}{2}{3}",
|
||||
LabItem.QualifiedName,
|
||||
|
Reference in New Issue
Block a user