Como asignar el Font en los Office templates
-
- Novato
- Mensajes: 33
- Registrado: Mar Oct 25, 2016 2:28 am
- Contactar:
Como asignar el Font en los Office templates
Hola, alguno sabe como asignar el font de impresión (Arial, etc.) a una celda de Excel usando los Office templates de Softmaster ?
-
- Ayudante de Santa
- Mensajes: 70
- Registrado: Sab Feb 12, 2011 1:53 am
- Ubicación: Cd. Juarez,Chih,Mexico
- Contactar:
Re: Como asignar el Font en los Office templates
Hola segun la ayuda es SetFont
SetFont (STRING FontName)
FontName: A string constant, variable or expression specifying the new font to be used by any text sent to Microsoft Office applications.
The SetFont method sets the font for any text sent to Microsoft Office applications. Use this method at the beginning of a document to set the default font for the entire document.
SetFont is a VIRTUAL method so that other base class methods can directly call the SetFont virtual method in a derived class. This lets you easily implement your own custom version of this method.
SetFont (STRING FontName)
FontName: A string constant, variable or expression specifying the new font to be used by any text sent to Microsoft Office applications.
The SetFont method sets the font for any text sent to Microsoft Office applications. Use this method at the beginning of a document to set the default font for the entire document.
SetFont is a VIRTUAL method so that other base class methods can directly call the SetFont virtual method in a derived class. This lets you easily implement your own custom version of this method.
Victor Montañez
-
- Novato
- Mensajes: 33
- Registrado: Mar Oct 25, 2016 2:28 am
- Contactar:
Re: Como asignar el Font en los Office templates
Debo tener una versión distinta del Office template, el procedimiento SetFont no está.
Bajé el template de SoftMasters que publicó Pacheco.
Lo instalé en Clarion 6.3 y en C10 (aunque en este último anduvo solamente en ABC, yo lo necesito en legacy).
Bajé el template de SoftMasters que publicó Pacheco.
Lo instalé en Clarion 6.3 y en C10 (aunque en este último anduvo solamente en ABC, yo lo necesito en legacy).
-
- Novato
- Mensajes: 33
- Registrado: Mar Oct 25, 2016 2:28 am
- Contactar:
Re: Como asignar el Font en los Office templates
Jarodav1, te agradecería si pudieras adjuntar el instalador de los templates, así lo pruebo en mi equipo.
El método SetFont no figura en el help ni en la librería.
El método SetFont no figura en el help ni en la librería.
-
- Ayudante de Santa
- Mensajes: 70
- Registrado: Sab Feb 12, 2011 1:53 am
- Ubicación: Cd. Juarez,Chih,Mexico
- Contactar:
Re: Como asignar el Font en los Office templates
Yo instale el mismo que publico Ramon Pacheco
SI te fijas en el aboffice.inc linea 59 esta definido el metodo setfont y en el aboffice.clw linea173
MSOfficeClass.SetFont PROCEDURE(STRING FontName)
CODE
SELF.SetProperty('Selection.Font.Name',FontName)
saludos
SI te fijas en el aboffice.inc linea 59 esta definido el metodo setfont y en el aboffice.clw linea173
MSOfficeClass.SetFont PROCEDURE(STRING FontName)
CODE
SELF.SetProperty('Selection.Font.Name',FontName)
saludos
Victor Montañez
-
- Novato
- Mensajes: 33
- Registrado: Mar Oct 25, 2016 2:28 am
- Contactar:
Re: Como asignar el Font en los Office templates
Perfecto, funciono, muchas gracias !!!
MSExcel1.Select('A12')
MSExcel1.SetProperty('Selection.Font.Name','Verdana')
MSExcel1.Select('A12')
MSExcel1.SetProperty('Selection.Font.Name','Verdana')
¿Quién está conectado?
Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 9 invitados