Código: Seleccionar todo
METHOD Button1Click( oSender ) CLASS TForm1
Printer:lPreview := .F.
Printer:nOrientation := DMORIENT_LANDSCAPE
Printer:StartDocPdf( "C:\MiCarpeta\FilePDF.Pdf", "FilePDF" )
Printer:oCanvas:nMapMode := mmHIMETRICS
Printer:oCanvas:TextOut( 1820, 1920, "Prueba PDF" )
Printer:EndPage()
Printer:EndDoc()
RETURN Nil
Código: Seleccionar todo
***************************** Registro de errores *****************************
Exe: C:\Users\Xevi\Desktop\ProvaPDF.exe
Version: 1.0.0.0
User name: xevi
Computer name: DC02
Fecha: 04/30/19
Hora: 15:54:50
Memoria libre: 4194303
Area actual: 1
------------------------- Información del compilador --------------------------
Versión Xailer: Xailer 6.0.4
Compilador: Harbour 3.2.0dev (r1803161710)
Compilador C/C++: MinGW GNU C 7.3 (32-bit)
Plataforma: Windows Server 2012 R2 6.3
----------------------- Información detallada del error -----------------------
Subsistema: BASE
Código de error: 1005
Estado: .F.
Descripción: No exported variable
Operación: NMAPMODE
Argumentos: [ 1] = Tipo: U Valor: NIL [ 2] = Tipo: N Valor: 1
Fichero:
Código error SO: 0
Pila de llamadas:
_NMAPMODE (0)
TFORM1:BUTTON1CLICK (33)
TBUTTON:ONCLICK (0)
TBUTTON:CLICK (100)
(b)XCONTROL (156)
TBUTTON:COMMAND (0)
TSCROLLINGWINCONTROL:WMCOMMAND (275)
TFORM1:WMCOMMAND (952)
RUNFORM (0)
TAPPLICATION:RUN (289)
MAIN (15)
Cuando... otro terminal, no me lanza error, pero no me hace caso a DMORIENT_LANDSCAPE y crea el documento en vertical.
Gracias por vuestro tiempo.