04/05/2007, 14:41
|
| | Fecha de Ingreso: febrero-2007 Ubicación: Barranquilla, Colombia
Mensajes: 181
Antigüedad: 17 años, 11 meses Puntos: 3 | |
Aquí hay una posible respuesta Código PHP: <%@ include file="Settings.jsp" %>
<%@ page session="false" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<%
String sNewBrackets = "{";
String sEndBrackets = "}";
String sRTFHeader = "\\rtf1";
String sRTFCharSet = "\\ansi";
String sRTFDeff = "\\deff0 \n";
String sRTFDLang = "\\deff0 \n";
String sNPage = "\n \\page \n";
String sNLine = "\n \\line";
String sNPar = "\\par ";
String sFontTable = "\\fonttbl \n";
String sFontS24 = "\\fs24 ";
String sFontN0 = "\\f0 ";
String sFontN1 = "\\f1 ";
//Los tipos de feuntes se definen a continuación
String sFMNil =" "+sNewBrackets+"\\f0\\fnil\\fprq1\\fcharset128 TlwgMono;"+sEndBrackets+"\n";
String sFMSwiss=" "+ sNewBrackets+"\\f1\fswiss\\fprq1\\fcharset128 Bitstream Vera Sans Mono;"+sEndBrackets+"\n";
//Se Crea la tabla con los tipos de fuentes definidos
String MyFontTable = sNewBrackets+sFontTable+sFMNil+sFMSwiss+sEndBrackets+"\n";
//Los colores se colocan en una lista y se seleccionan según su posición
//cb# para el color del Fondo y cf# para el color del frente
String sColorTable = "\\colortbl;\n";
String sColorBlack = " \\red0\\green0\\blue0;\n";
String sColorWhite = " \\red255\\green255\\blue255;\n";
String sColorRed = " \\red255\\green0\\blue0;\n";
String sColorGreen = " \\red0\\green255\\blue0;\n";
String sColorBlue = " \\red0\\green0\\blue255;\n";
String MyColors = sColorBlack+sColorWhite+sColorRed+sColorGreen+sColorBlue;
//Se crea la tabla con los colores definciods anteriormente
String MyColorTable = sNewBrackets+sColorTable+MyColors+sEndBrackets+"\n";
//Formatos Especiales
String sRTF_BN = "\\b ";
String sRTF_IN = "\\i ";
String sRTF_UN = "\\ul ";
//Quitar Formatos Especiales
String sRTF_BF = "\\b0 ";
String sRTF_IF = "\\i0 ";
String sRTF_UF = "\\ul0 ";
//Alineacion
String sRTF_AL = "\\ql ";
String sRTF_AR = "\\qr ";
String sRTF_AC = "\\qc ";
String sRTF_AJ = "\\qj ";
String sRTF_AD = "\\qd ";
String sRTFTableO = "\\trowd\\trql \n"; //Apertura de Definicion de Tabla
String sRTFTableH = "\\trowd\\trql\\trhdr \n"; //Cabecera de Definicion de Tabla
String sRTFTableC = "\\pard\\intbl\\pard\\plain \n"; //Cierre de Definicion de Tabla
String sRTFTableE = "\\row\\pard \n"; //Fin de Llenado de Tabla
String sRTFRowTL = "\\trbrdrt\\brdrdb\brdrw15\\brdrcf1 \\trbrdrl\\brdrdb\\brdrw15\\brdrcf1";
String sRTFRowBR = "\\trbrdrb\\brdrdb\brdrw15\\brdrcf1 \\trbrdrr\\brdrdb\\brdrw15\\brdrcf1";
String sRTFRowHV = "\\trbrdrh\\brdrdb\brdrw15\\brdrcf1 \\trbrdrv\\brdrdb\\brdrw15\\brdrcf1";
String sRTFCellH = "\\clbrdrt\\brdrs\\brdrw1\\brdrcf1 \\clbrdrl\\brdrs\\brdrw1\\brdrcf1 ";
String sRTFCellV = "\\clbrdrb\\brdrs\\brdrw1\\brdrcf1 \\clbrdrr\\brdrs\\brdrw1\\brdrcf1 ";
String sRTFCellW = "\\cellx1606 \n";
String sRTFCellO = "\\pard\\plain\\intbl\\ltrpar\\qc ";
String sRTFCellC = "\\cell \n";
String sNewBrackets = "{";
String sEndBrackets = "}";
String sRTFHeader = "\\rtf1";
String sRTFCharSet = "\\ansi";
String sRTFDeff = "\\deff0 \n";
String sRTFDLang = "\\deff0 \n";
String sNPage = "\n \\page \n";
String sNLine = "\n \\line";
String sNPar = "\\par ";
String sFontTable = "\\fonttbl \n";
String sFontS24 = "\\fs24 ";
String sFontN0 = "\\f0 ";
String sFontN1 = "\\f1 ";
//Los tipos de fuentes se definen a continuacion
String sFMNil =" "+sNewBrackets+"\\f0\\fnil\\fprq1\\fcharset128 TlwgMono;"+sEndBrackets+"\n";
String sFMSwiss=" "+ sNewBrackets+"\\f1\fswiss\\fprq1\\fcharset128 Bitstream Vera Sans Mono;"+sEndBrackets+"\n";
//Se Crea la tabla con los tipos de fuentes definidos
String MyFontTable = sNewBrackets+sFontTable+sFMNil+sFMSwiss+sEndBrackets+"\n";
//Los colores se colocan en una lista y se seleccionan según su posición
//cb# para el color del Fondo y cf# para el color del frente
String sColorTable = "\\colortbl;\n";
String sColorBlack = " \\red0\\green0\\blue0;\n";
String sColorWhite = " \\red255\\green255\\blue255;\n";
String sColorRed = " \\red255\\green0\\blue0;\n";
String sColorGreen = " \\red0\\green255\\blue0;\n";
String sColorBlue = " \\red0\\green0\\blue255;\n";
String MyColors = sColorBlack+sColorWhite+sColorRed+sColorGreen+sColorBlue;
//Se crea la tabla con los colores definciods anteriormente
String MyColorTable = sNewBrackets+sColorTable+MyColors+sEndBrackets+"\n";
//Formatos Especiales
String sRTF_BN = "\\b ";
String sRTF_IN = "\\i ";
String sRTF_UN = "\\ul ";
//Quitar Formatos Especiales
String sRTF_BF = "\\b0 ";
String sRTF_IF = "\\i0 ";
String sRTF_UF = "\\ul0 ";
//Alineacion
String sRTF_AL = "\\ql ";
String sRTF_AR = "\\qr ";
String sRTF_AC = "\\qc ";
String sRTF_AJ = "\\qj ";
String sRTF_AD = "\\qd ";
String sRTFTableO = "\\trowd\\trql \n"; //Apertura de Definicion de Tabla
String sRTFTableH = "\\trowd\\trql\\trhdr \n"; //Cabecera de Definicion de Tabla
String sRTFTableC = "\\pard\\intbl\\pard\\plain \n"; //Cierre de Definicion de Tabla
String sRTFTableE = "\\row\\pard \n"; //Fin de Llenado de Tabla
String sRTFRowTL = "\\trbrdrt\\brdrdb\brdrw15\\brdrcf1 \\trbrdrl\\brdrdb\\brdrw15\\brdrcf1";
String sRTFRowBR = "\\trbrdrb\\brdrdb\brdrw15\\brdrcf1 \\trbrdrr\\brdrdb\\brdrw15\\brdrcf1";
String sRTFRowHV = "\\trbrdrh\\brdrdb\brdrw15\\brdrcf1 \\trbrdrv\\brdrdb\\brdrw15\\brdrcf1";
String sRTFCellH = "\\clbrdrt\\brdrs\\brdrw1\\brdrcf1 \\clbrdrl\\brdrs\\brdrw1\\brdrcf1 ";
String sRTFCellV = "\\clbrdrb\\brdrs\\brdrw1\\brdrcf1 \\clbrdrr\\brdrs\\brdrw1\\brdrcf1 ";
String sRTFCellW = "\\cellx1606 \n";
String sRTFCellO = "\\pard\\plain\\intbl\\ltrpar\\qc ";
String sRTFCellC = "\\cell \n";
|