Last post May 19, 2014 02:02 PM by cle.darsie
May 16, 2014 01:33 PM|cle.darsie|LINK
I have a difficult problem to solve.
I have a web application that generates barcode label.
For a client able to print, need to access the computer's COM port.
Created a design that makes this function. But the label is printed, I need my application pass parameters to the new project.
I also noticed that the control I created is not working right, as follows in the image below:
I've tried everything, but I can not make it work. I believe if the error image disappears, I can make it work.
Below is the code that sends the data to the project and the code that receives the data.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" >
<title>Impressão de Etiqueta</title>
var winCtrl = document.getElementById("PrintBarcode");
<body onload = "SendMessageToWinControl()" >
<form id="form1" runat="server">
name="PrintBarcode" height="150" width="360" VIEWASTEXT>
<asp:HiddenField ID="HiddenField1" runat="server" />
<asp:HiddenField ID="HiddenField2" runat="server" />
<asp:HiddenField ID="HiddenField3" runat="server" />
<asp:HiddenField ID="HiddenField4" runat="server" />
<asp:HiddenField ID="HiddenField5" runat="server" />
public partial class UserControl1 : UserControl
public void SendMessage(string paciente, string nome, string amostra, string cliente, string pedido)
c19tbl20.Text = cliente;
c1tbl374.Text = pedido;
c2tbl375.Text = amostra;
c1tbl372.Text = paciente;
c2tbl372.Text = nome;
I'm waiting for a help.
May 19, 2014 04:25 AM|Shawn - MSFT|LINK
If you want to write a COM-Visible Assembly, you could try to refer to the following information:
May 19, 2014 02:02 PM|cle.darsie|LINK
I used the knowledge from the links that you sent, but my COM still doesn't work.
This is the error that I get when I try to add a reference to the COM dll.
I don't know what else I can do to make it work. And worst, I don't know where find answers to the problem.
All alternatives that people give me are not working! Whats wrong?
Do you have any other idea of what is happening?