printing a list from memory using Bold and regularfont style

Dec 23 2013 12:41 PM
Hi,
 
I am trying to use the ideas presented by Mahesh on printing a text file  to printout a List in c#.
 
I can only use this method and avoid printing through MS Word using Interop if I can print some titles in Bold.
 
Is that possible?
 
Here is what I am trying to do:
The iSeries will output a file like this below in textfile format and my c# application or service will pick up the file from the Drop folder then print out a statement of account:
 
The first line is tab separated information about the account hodler, then each subsequent line is either an Account designation or a transaction line depending on whether it starts with 01 or 02. All the fields of data are tab demited.
 
CSAclsEN 001 \\sgprt\Projects2 001 CSAclsEN-2010-1130227 16:59 27Feb13 2010 Southgate Branch SS01 001 ****69 Steve Suttill 
01 ******10  Business Current Account GBP 2,342,188.20 
02 27Feb13 700.00-  
02 27Feb13 25.00- Llook at lloyds 
02 27Feb13 1,000.00-  
02 27Feb13 1,000.00- fred 
02 27Feb13 20.00- Cashier Transfer fee 
01 ******11  Personal Current Account GBP 22,456.80 
02 27Feb13 100.00-  
02 27Feb13 1,000.00  
02 27Feb13 1,234.56 Credit reference looks more cr 
02 27Feb13 2,222.22  
02 27Feb13 0.01 a 
01 ******12  Business Current Account EUR 7,246.69 
02 27Feb13 18.70-  
02 27Feb13 1,000.00-  
02 27Feb13 1,146.30  
02 27Feb13 1,146.30  
02 27Feb13 1,000.00  
01 ******14  Personal Current Account GBP 0.00 
01 ******15  Personal Current Account GBP 0.00 
01 ******16  Personal Current Account GBP 0.00 
01 ******17  Personal Current Account GBP 0.00 
01 ******35  Variable rate Cash ISA GBP 5,640.00 
02 26Feb13 994,360.00-  
02 26Feb13 1,000,000.00  
01 ******75  35 Day Notice account GBP 0.01 
02 27Feb13 0.01  
01 ******751 35 Day Notice account GBP 0.00 
01 ******752 35 Day Notice account GBP 0.00 
 
I need to print it formatted with this:
               Account List                                          16.59      27Feb13
****69 Steve Suttill 
 Account                  Type                                                         Balance:
******10                  Business Current Account         GBP        1,979,188.00
   27FEB13                 Debit Card Transaction                            700.00- 
   24FEB13                 Cheque Cashed                                        120.00-
   23FEB13                 Standing Order                                         40.00- 
 
 Account                  Type                                                         Balance:
******71                  Personal Current Account         GBP        2,750.00
   27FEB13                 Cheque Cashed                                        730.00- 
   26FEB13                 Debit Card Transaction                            450.00-
   25FEB13                 Standing Order                                         150.00- 
 
so the Account data is identified in the source file as starting with a 01 and the transaction lines are identified in the original data file as starting with a 02
 
The first line is always the Customer data.
I have a solution which works pretty well using MS Word tables and Interop, but if possible I'd like to build a a much simpler, more robust solution using simple text file printing in memory.

thanks,

Philip