Hi, I hope anyone here can help me.
We are busy converting a VB6 project to .net.
Some of our reports get build using the old VB6 printer object, when convered to .net we used "Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6.Printer", that works fine, but it's still technically pure .net code, it's basically to slow to use anymore.
How or what would I use to upgrade this to pure .net coding, using 3rd party dll's is fine like iTextSharp.
And the other issue is we really can't change much of how the design of it works because the data gets send through a string to the report builder and that string format can't be changed.
The current code is:
goPrinter is the VB6.Printer object
sReportData is an array string
Any help would be great, and thank you so long
For iL = 1 To ICnt
strItem = sReportData(iL)
Select Case strItem.Trim()
Case "<BR>"
LCnt += 1
goPrinter.Write("")
Case "<LF>"
goPrinter.Print("")
Case ""
goPrinter.FontBold = True
Case ""
goPrinter.FontBold = False
Case "<NP>"
goPrinter.NewPage()
Case Else
goPrinter.Print(strItem)
End Select
Next iL
goPrinter.EndDoc()
goPrinter.Print()