Converting Commander To .net Sdk Follow
am getting the following error "mixed mode assembly is built against v2.0.50727 of the runtime and cannont be loaded in the 4.0 runtime without additonal configuration info"
Here is the code being executed. I am new to Bartender and I am coverting a vb6 app running on ver7.75 to vb.net version 10.1.sr3
The code errors on the btEngine.start statement
Public Sub PrintLabels(byref LableTemplate as string,byref Printername as steing, byref nbrofcopies as integer,byref lblformat as string)
Using btEngine as new Engine(true)
dim strFormat as string = nothing
Select Case lblformat
strformat = "c:\lable\lblvend.btw"
strformat = "c:\label\lbllocn.btw"
strformat = "c:\lable\lblptag.btw"
Dim btFormat as LabelFormatDocument = btEngine.Documents.Open(strFormat)
bt.format.printsetup.identicalcopiesoflabel = nbrofcopes
Dim tf as Seagull.Bartender.Print.Database.Textfile = new Seagull.Bartender.Print.Database.Textfile(btFormat.DatabaseConnections(0).Name)
tf.FileName = fromprocessor.stroutputfilepath & "\" & frmProcessor.mstrtextfile
I am assuming if I have the data to be printed (lblTemplate), the Nbroflabels to print (nbrofcopies), labelformat(lblformat) and the printer (PrinterName or could I set the default printer and not pass the printername) I could pass these params to the print engine and it would print. Is this true?
Please sign in to leave a comment.