internal string[] ToArray() { try { myLabels = etiApp.Tabelas.get_Etiquetas(Convert.ToByte(bytLableType)); myLabel = myLabels.FindEtiqueta(bytLableType, 0, labelFileName, ref myGraphic); string strErrorDescription = string.Empty; string strCamposSelect = myLabels.GetCamposSelectToQtd(EmissionBy, bytTpEmissaoPorDocOuLinha, copiesType, chkUsaQtdMedidas, measureType, blnFiltroComTpNivel, strTabDocLin); string strFiltroLeftJoin = myLabels.GetFiltroLeftJoin(strCamposSelect + " " + strFiltroWhere + " " + strFiltroOrderBy, strTabDocCab, strTabDocLin, ref strErrorDescription); if (!string.IsNullOrEmpty(strErrorDescription)) { throw new Exception(strErrorDescription); } string[] res = new string[] { Convert.ToInt32(bytLableType).ToString(), Convert.ToInt32(toPrint).ToString(), Convert.ToInt32(columnPosition).ToString(), Convert.ToInt32(linePosition).ToString(), Convert.ToInt32(Copies).ToString(), Convert.ToInt32(EmissionBy).ToString(), Convert.ToInt32(bytTpEmissaoPorDocOuLinha).ToString(), Convert.ToInt32(copiesType).ToString(), strCamposSelect, strFiltroLeftJoin, strFiltroWhere, strFiltroOrderBy, lngPromInic.ToString(), lngPromFinal.ToString(), "0", strFiltroArmazens, strFiltroArtigos, DataInicPreco.ToShortDateString(), DataFimPreco.ToShortDateString(), strFiltroPromocoes }; return(res); } catch (Exception ex) { throw new Exception("PrintLabelInput.ToArray", ex); } }