I am in need of some help adding a MICR line to a printed output file.
I have the numbers (transit, account, and trans code) needed for the MICR line. What I need is to show the IDAutomation transit number characters (|:) that surround the transit number and the ON-US symbol (||') after the account number.
I create the MICR line to be written when I parse the original data file used to create the statement page. This MICR line is stored as a string that is then output in the necessary location on the output sheet.
The original program was written in roughly 2005, outputting PCL format documents. I need to make this work until I can get it rewritten into C# outputting PDF using JDF for tray pulls.
Create the MICR string
string stmtTransCode = FindTransCode(vStrPage);
stmt->SetStmtTransCode(stmtTransCode);
dynamic_cast<MBStatement*>(stmt)->m_strMICR = "";
if (stmtTransCode != "")
{
// leading MICR Transit symbol ('A')
dynamic_cast<MBStatement*>(stmt)->m_strMICR += "072413845";
// trailing MICR transit symbol ('A')
dynamic_cast<MBStatement*>(stmt)->m_strMICR += " " + stmt->GetAccNum();
// trailing MICR accy number symbol ('C')
dynamic_cast<MBStatement*>(stmt)->m_strMICR += " " + stmt->GetStmtTransCode();
}
Print the MICR string from a Writer class
BOOL MBStmtWriter::WriteMICRLine(string m_MICRLine) {
// print MICR/OCR line
m_printer.WriteCMD(m_printer.getFont("OCRAFont") + m_printer.getXYPosCMD(2000, 3225));
m_printer.WriteCMD(m_MICRLine);
return 0;
}