Professional Documents
Culture Documents
Thisform.nrecno=recno()
Thisform.Setall('DynamicBackColor','iif(recno()=Thisform.nrecno,rgb(170,226,253),rg
b(255,255,255))','Column')
Thisform.refresh()
3 Para declarar en VFP9 los F1, en cada caja de texto según el requerimiento de
adicionar.
Text1 - Gotfocus
ON KEY LABEL F1 DO FORM WADICLI1
Text1 – Lostfocus
On Key Label F1
y con esto, mis campos fecha se despliegan como 01/01/2002 y mi fecha del dia como
Miercoles, 17 de Julio de 2002
5 DF
1) Deberás seleccionar el grid y cambiar la propiedad HeaderHeight por un valor más grande
(30 por ejemplo).
2) Ve a las propiedades del Header en el que quieres escribir + de 1 linea y cambia la propiedad
WordWrap a True.
En el INIT del Data Environmet del Reporte en cada uno pon esto:
IF WEXIST('Report Designer')
zoom window 'Report Designer' MAX
ENDIF
IF WEXIST('Diseñador de Informes')
zoom window 'Diseñador de Informes' MAX
ENDIF
Reports
http://www.portalfox.com/index.php?
name=News&file=article&sid=1269&mode=nested&order=0&thold=0
http://luismmm.blogspot.com/2008/08/parametros-set.html
http://jgpg07.blogspot.com/2007/04/fox-pro-26.html
http://www.davphantom.net/category.asp?tag=trucos-3/
*LCRUTA_IMPRESORA=GETPRINTER()
**LCRUTA_IMPRESORA = "TIKET" && NOMBRE DE LA IMPRESORA.. :D
USE basura
GO TOP
DO WHILE .NOT. EOF()
??? CHR(10)+CHR(13)+DTOC(DATE())
??? CHR(10)+CHR(13)+TIME()
??? CHR(10)+CHR(13)+PADC('GOBIERNO DEL ESTADO DE ************',LN_NCOL)
??? CHR(10)+CHR(13)+PADC('COORDINACION MUNICIPAL DEL PROGRAMA',LN_NCOL)
??? CHR(10)+CHR(13)+PADC('COORDINACION MUNICIPAL DEL PROGRAMA',LN_NCOL)
??? CHR(10)+CHR(13)+REPLICATE("-",LN_NCOL)
??? CHR(10)+CHR(13)+PADC('MUNICIPIO DE XXXXXXX',LN_NCOL)
??? CHR(10)+CHR(13)+PADC('** DATOS DEL VALLE **',LN_NCOL)
??? CHR(10)+CHR(13)+PADC('BENEFICIARIO: ',LN_NCOL)
??? CHR(10)+CHR(13)+ALLTRIM("appat")+' '+ALLTRIM("apmat")+' '+ALLTRIM("nombre")
??? CHR(10)+CHR(13)+PADC('LOCALIDAD: ',LN_NCOL)
??? CHR(10)+CHR(13)+TRANSFORM("localidad",'999')+'-'+ALLTRIM("colonia")
??? CHR(10)+CHR(13)+'VALE POR: '+' '+alltrim("0235")
??? CHR(10)+CHR(13)+'Casa Comercial: '+alltrim("prov")
??? CHR(10)+CHR(13)+'Contacto: '+alltrim("contacto")
??? CHR(10)+CHR(13)+PADC('AUTORIZO:',LN_NCOL)
??? CHR(10)+CHR(13)+PADC('LIC..........:',LN_NCOL)
??? CHR(10)+CHR(13)+PADC('PUESTO',LN_NCOL)
??? CHR(10)+CHR(13)+REPLICATE("-",LN_NCOL)
SKIP
ENDDO
STORE 0 TO m.cualinfo
STORE 'abracadabra' TO gcString
? STRTRAN(gcString, 'a', 'z') && Displays zbrzczdzbrz
? STRTRAN(gcString, 'a', 'q', 2, 3) && Displays abrqcqdqbra
ThisForm.Text1.ImputMask = 999-9999
ThisForm.Text1.MaxLen = 8
propiedad inputmask !!!!999999XXX (caractnumerootroscaracteres)
propiedad format C
• (ALT+7)
*--Dimensiones
THIS.Height = SYSMETRIC(22)
THIS.Width = SYSMETRIC(1)
**--
THISFORM.AutoCenter = .T.
**--
THISFORM.Top = 0
**--//
Opc
_screen.addobject("oImg", "image")
_screen.oImg.picture = "c:imagen.jpg"
printmanagement.msc
http://www.solvusoft.com/es/files/error-falta-descarga/msc/windows/microsoft/msdn-disc-
3715/printmanagement-msc/
http://msdn.microsoft.com/es-pe/library/cc450489(v=vs.71).aspx
http://www.fpress.com/revista/Num9905/Barras.htm
http://jgpg07.blogspot.com/2007/04/fox-pro-26.html
Either of below will disable Task Pane Manager launch on VFP startup:
Click on the Task Pane's Options, Select Task Pane Manager in the treeview and uncheck Open the
Task Pane when Visual FoxPro starts
Go to Tools, Options, File Locations and clear Startup Program. Click on Set As Default to save
changes.
In the RegEdit go to
the HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\9.0\Options key and blank out Data
for Value Name_STARTUP.
Add _STARTUP= to a config.fpw. Only VFP instance that uses this config.fpw will be affected.
vfp9esn.dll
vfp9r.dll
vfp9resn.dll
vfp9run.exe
vfp9t.dll
en el directorio c:\windows\system32 en el caso de xp y vista
c:\winnt\system32 en el caso de win2000 o en c:\windows\system para win98 y ME
Tienes que copiar en la carpeta windows\system32 o si quieres estar más seguro que
funcione, en la carpeta de la aplicación los siguientes archivos:
(runtime)
vfp9r.dll
vfp9t.dll
(Idioma)
vfp9renu.dll
(Utilidades)
msvcr71.dll
gdiplus.dll
**--ALTERNATIVA 1-- **
** Cuando vayas a imprimir facturas "elaboradas":
set printer to name PC1\IMPRESORAUNO
report form FACTURA to printer
**--ALTERNATIVA 2-- **
http://www.davphantom.net/category.asp?tag=visual-fox-pro-2/page5/
Eliminar registros:
o DELETE
Ejemplo: DELETE (BORRAR ACTUAL)
DELETE ALL (BORRAR TODOS)
DELETE FOR DEPTO=”0132” (BORRAR SOLO LOS DE ESE
DEPTO).
DELETE NEXT 5 (BORRAR LOS SIGUIENTES 5 DESPUÉS DEL
ACTUAL)
Examinar la información:
o BROWSE
Ejemplos: USE empleado
BROWSE
0
BROWSE FIELDS clave, nombre, sueldo (aquí se omitió el depto)
0
BROWSE FOR depto = “0003” (solo ese depto)
Aquí se pueden utilizar una mezcla de todas.
After clicking Export Data, a new window will appear where you will have to select the database from where you
want the data exported.
After selecting the Data Source you’ll press Next and get to a window where you will have to select the Data
Destination.
You will have a drop-down menu, like the one you can see below where you will have to select Excel as
destination type.
The next step would be to browse to the location of where the file will be created and input its name. Also, you
should select the version of Excel you want the file to be created for.
Press Next and get to the next Wizard window where you have the option of either running a custom query to
output custom data from your tables, or just select all data from more tables.
Choose whatever version works best for you, but for now let’s just say you
want to export all data from a specific table and thus you’ll choose the first
option.
The next window you will see will have you select the table or tables you
want to select data from. Select the table you want to expor data from and
either press Next or Edit Mappings.
Press Next to get to the next step of the wizard. You will get to a window
where you have the option of running the query “Right Now” and also create
an SSIS package.
After you’ve selected the options you’d like, press Next. You will get to the
last window of this wizard where you will have to press Finish.
This will create the export file to the file path you specified with the file
name you have selected.
If we go to review the file, you can see that the data is in that specific
format.
http://windows.microsoft.com/es-419/windows/share-printer#1TC=windows-7
El uso compartido de una impresora requiere algunos pasos. En primer lugar, en el equipo al cual está conectada
la impresora, realice los siguientes pasos.
1. Para abrir Configuración de uso compartido avanzado, haga clic en el botón Inicio y, a
continuación, haga clic enPanel de control. En el cuadro de búsqueda, escriba red, haga clic en Centro
de redes y recursos compartidos y, a continuación, haga clic en Cambiar configuración de uso
compartido avanzado, en el panel izquierdo.
2. Haga clic en las comillas angulares para expandir el perfil de red actual.
1. Para abrir Dispositivos e impresoras, haga clic en el botón Inicio y, a continuación, en el menú
Inicio, haga clic enDispositivos e impresoras.
2. Haga clic con el botón secundario en la impresora que desea compartir y, a continuación, haga
clic en Propiedades de la impresora.
Ahora otras personas de la red pueden conectarse a esta impresora. Solamente tienen que agregar una
impresora de red (su impresora) a sus equipos.
1. Para abrir Dispositivos e impresoras, haga clic en el botón Inicio y, a continuación, en el menú
Inicio, haga clic enDispositivos e impresoras.
3. Haga clic en Agregar una impresora de red, inalámbrica o Bluetooth, haga clic en la
impresora compartida, haga clic en Siguiente y siga las instrucciones que aparecen en pantalla.