Definir interno.com.senior.g5.co.ger.relatorio.Executar wsRelatorio; Definir alfa wCodEmp; Definir alfa wCodFil; Definir alfa wNumGae; Definir alfa wStrAux; Definir alfa wEstMov; Definir alfa wESinAna; Definir alfa wEMosUsu; wCodEmp = "1"; wEstMov = "5"; wESinAna = "A"; wEMosUsu = "S"; wsRelatorio.prFileName = "PedidosLiberados"; wsRelatorio.prRelatorio = "SECE001.GER"; wsRelatorio.prDir = "C:\\temp"; wsRelatorio.prEntrada = ""; wsRelatorio.prTypeBmp = "N"; wsRelatorio.prSaveFormat = "tsfPDF"; wsRelatorio.prEntranceIsXML = "F"; wsRelatorio.prExecFmt = "tefFile"; wsRelatorio.ModoExecucao = 1; wsRelatorio.Executar(); wStrAux = wsRelatorio.prRetorno;