I have an ASP page that prints using a third party printing object through its designer, but wondered if i can do this in a SL4? If so what can i do with existing code to transfer in SL.
I have attached the code and 2 screenshots - one of the page and the printed label just to show how the ASP works
What type of "third party printing object" are you using (ActiveX, C++, ...)?
razza_b
ASKER
We use a designer called TFormer and thats where i create the label, then the names(values) on label is used in code and then the dll is added to solution and i use the objects from that to help do printing, to get the repo name, form name etc.
these are the fields on label and in asp(see attachment)...
Job.RepositoryName = "<%=TFormerRepository%>"
Job.ProjectName = "<%=RS("LabelProject")%>"
Job.FormName = "<%=RS("LabelType")%>"
Job.PrinterName = ""
JobData.AddNewRecord() // add a new record. Each record prints the Detail Band of the form
Jobdata.SetDataField "PartNumber","<%=RS("PartNumber")%>"
Jobdata.SetDataField "SerialNumber","<%=RS("Serial")%>"
Jobdata.SetDataField "CustomerSerialNumber","<%=RS("CPN")%>"
Jobdata.SetDataField "CustDesc","<%=REPLACE(RS("CustomerDesc"),CHR(34),"")%>"
Jobdata.SetDataField "WWNumber","<%=RS("WWN")%>"
Jobdata.SetDataField "COO","<%=RS("COO")%>"
Jobdata.SetDataField "Model","<%=RS("SmartModel")%>"
Jobdata.SetDataField "WorkOrder","<%=RS("WorkOrder")%>"
Jobdata.SetDataField "CPN","<%=RS("CustomerModel")%>"
Jobdata.SetDataField "Revision","<%=RS("CustomerRev")%>"
Jobdata.SetDataField "Firmware","<%=RS("Firmware")%>"
Jobdata.SetDataField "Capacity","<%=RS("Capacity")%>"
Jobdata.SetDataField "Interface","<%=RS("Interface")%>"
Jobdata.SetDataField "DOM","<%=RS("DOM")%>"
Thanks
Bob Learned
I haven't heard of TFormer, but if it is ActiveX, you need to do something special to work with ActiveX, such as creating an HTML page, with a reference to the ActiveX control.
yes it an ADO classic Recordset object, but i think i know what ive to do should be striaght foward, just wanted someone's opinion about taking asp to SL, but your right its just .net code, i was thinking SL would need to have something similar in xaml to asp.