How print a report from Web services?

Hello.

Please Help Me, I have that print a report using WebService, I have all config the client the config of sql and visual studio the web references , but I don’t can print the report,

I wrote this code:

visual Studio c#

private void BtImprimir_Click(object sender, EventArgs e)

{

try

{

string msn;

msn = impre.PrintOPLabel(CbOP.Text, TbOperador.Text, Convert.ToInt32(TbCopias.Text), Convert.ToDecimal(TbStandar.Text)); // where impre is the codeunit of Nav, PrintOPLabel is the funtion of codeunit.

CbOp, TbCopias, TbStandar , TbOperador.Text are the parameters of the funtion.

MessageBox.Show(msn);

}

catch (System.Exception ex)

{

MessageBox.Show(ex.Message);

//return “error”;

}


in my codeUnit of Navision use this code

ProdOrder.SETRANGE(ProdOrder.Status,3); //

ProdOrder.SETRANGE(ProdOrder.“No.”,OrderProdNo); //OrderProNo is CbOP.Text of visual

IF ProdOrder.FINDFIRST THEN BEGIN

LabelReport.SetReport(Copies,0,OperatorNo,Estandar); // copies is TbCopias.Text ,OperatorN is TbOperador.Text,

LabelReport.SETTABLEVIEW(ProdOrder);

LabelReport.USEREQUESTFORM:=FALSE;

// LabelReport.RUN;

LabelReport.RUNMODAL;

END;

Msg:=‘Ready’;


When I run the WebService , this does nothing, :frowning:


Can anyone help me please and thanks in advance