Beiträge von Cpdt

    Ante todo perdón por mi anterior inglés.Soy española.

    El problema que tengo , es que desarrollo en un lenguaje parecido a Visual Basic ,llamado Visual RPG , y con él no puedo utilizar las funciones:

    CreateFont()
    GetTextExtend()

    y necesito saber como calcular los valores de los parámetros x e y de la función TextOut() para establecer correctamente las columnas de una salida de tipo :

    Articulo Descripción Cantidad Precio Importe

    dejando un espacio en blanco entre columnas y en función del tamaño de fuente elegido , ya que me encuentro que en lugar de dejar un espacio en blanco en la salida , para algunas columnas me aparecen más de uno.

    Gracias

    I need to calculate the values of parametro x of the TextOut() function to carry out an exit of type:

    Article Description Quantity Price Import

    and as I am developing in Visual RPG language (type Visual BASIC) I cannot use the functions:

    CreateFont()
    GetTextExtend()


    As I can calculate this parameter?

    Thanks

    We are using the WPDFControl control version 2,0 to generate pdf files.
    Our program establishes the following values:

    EnhancedOptions = 0
    SetTextDefaultAttr('Tahoma',10)
    PAGE_PDFHeight = 750
    PAGE_PDFWidth = 650
    PAGE_PDFXRes = size font * 20
    PAGE_PDFYRes = size font * 20

    or

    PAGE_PDFXRes = size font
    PAGE_PDFYRes = size font


    In order to calculate the values x and y for the TextOt function , we used the following one formulates:
    x1 = size field1 * size font
    y1 = y1 + size font

    x2 = x1 + (separator * size font) + (size field2 * size font)

    As we must calculate the values of parameters x, and, w, h for any type of font?

    Thanks

    Note .- we enclosed file with example of generated file

    [/url]