Search found 65 matches: cprinter

Return to advanced search

Re: Problem with FiveWin and PDF995 on Windows 11.

I have tried a couple of ways, one: Print oPrn Name cReport File cFile to cPrinter oPrn:lUseHaruPDF := .t. Creates a perfectly great PDF, but during the process it pops up the preview screen and immediately takes it down. Can I eliminate the popup of the screen, ...
by byron.hopp
Tue Feb 13, 2024 8:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with FiveWin and PDF995 on Windows 11.
Replies: 29
Views: 3421

Printer hDC is 0

I sub-classed TPrinter as XPrinter and called it like this. (cPrinter is the name of the printer to use. Selected by user via PrinterSetup() and saved to a text file.) XPRINTER oPrn PREVIEW MODAL NAME cRptTitle to cPrinter This code works with my old version ...
by hua
Wed Feb 15, 2023 4:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printer hDC is 0
Replies: 6
Views: 567

Re: tPrinter a PDF

yo lo hago asi:


Local cPrinter:="Microsoft XPS Document Writer"

oPrn:=PrnSetSize( 2159, 3302 )
PRINT oPrn NAME "Impresión " PREVIEW TO cPrinter

y luego imprimo a pdf
saludos
by jbrita
Fri Feb 11, 2022 9:03 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: tPrinter a PDF
Replies: 6
Views: 703

¿Se puede parametrizar Microsoft Print To PDF?

... en el sentido de que convierta en modo silencioso en pdf un archivo rtf e indicándole la carpeta donde tiene que guardarlo? Por ejemplo: Local cprinter:= "Microsfort printer to PDF" Local crtf:= "modelo.rtf" Local cCarpeta:= "\FWH\samples cPdf:="modelo.pdf" ...
by Ramón J.
Wed Jan 06, 2021 11:15 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿Se puede parametrizar Microsoft Print To PDF?
Replies: 13
Views: 1202

Re: Problema con Windows 10 y la impresora predeterminada

... Si guardo el nombre de las impresoras que me interesan cuando genero la impresión la creo con la clausula PRINT oPrn NAME "XXXX" TO cPrinter y en esa variable le digo a que impresora quiero la impresión. Lo que no comprendo es porque cuando utilizo la funcion GetDefaultPrinter() ...
by miarcod
Fri Feb 22, 2019 5:48 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problema con Windows 10 y la impresora predeterminada
Replies: 5
Views: 1460

Test to see if Bluetooth Printer is ready

I made before the command PRINTER ::oPrn TO ::cPrinter IF !IsPrinter() Tone(4000) Tone(3000) MsgInfo("Verificare la stampante...","Attenzione!") Endif BUT this control not run !!!! HOW resolve it ? But My problem also is another ...
by Silvio.Falconi
Fri Sep 29, 2017 8:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Test to see if Bluetooth Printer is ready
Replies: 3
Views: 812

no printer selected program errors out

... to build in a standard error handling for that. Best regards, Otto oVRD.prg after: ::oPrn := PrintBegin( ::cTitle,, ::lPreview, ; IIF( EMPTY( ::cPrinter ), NIL, ::cPrinter ), ; IIF( ::lPreview, lModal, .F. ) ) insert: //kein Drucker gefunden if ::oPrn:hDC = 0 RETURN ( Self ) Endif in my program: ...
by Otto
Tue Aug 08, 2017 11:18 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: no printer selected program errors out
Replies: 2
Views: 537

Re: IMPRIMIR UN ARCHIVO PDF

gracias por contestar function BoletaPdf(cFilePdf) *---------------------------- local cSumatra := ".\SumatraPdf.exe" local cPrinter := PrnGetName() local cFile,cCmd cFile := cFilePdf cCmd := cSumatra + ' -Print-to "' + ; alltrim( StrToken( cPrinter, 1, "," ) ) + ...
by jbrita
Tue May 09, 2017 2:04 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: IMPRIMIR UN ARCHIVO PDF
Replies: 12
Views: 2088

CRYSTAL REPORT XI print to printer

Dear All, I try this code for Preview and Export to file, it's work well but print to printer doesn't work and got an error. oRpt:SelectPrinter( cPrinter ) // Error missing method oRpt:PrintOut("False",nCopy) // Error missing method Thanks in advance for any help or suggestion. *----------------------------------------------------------------------------------*Procedure ...
by dutch
Mon Apr 24, 2017 10:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: CRYSTAL REPORT XI print to printer
Replies: 2
Views: 545

Re: Long Printer Names.

The Print command is really messed up in recent versions of FWH. In fact, in the command print oprn cprinter, as you described, cprinter is ignored completely. The only way to get that to work is to first set the windows default printer to the printer you want. This makes ...
by dtussman
Thu Jul 21, 2016 8:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Long Printer Names.
Replies: 10
Views: 2437

Re: Simple print question

Please try it this way:

setprintdefault(cprinter)
PrinterInit()
print oprn name pname to cprinter

SetPrintDefault() just changes the Windows registry values but does not refresh the FWH printer internals

Maybe we should call PrinterInit() from SetPrintDefault() automatically
by Antonio Linares
Mon Feb 01, 2016 9:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Simple print question
Replies: 9
Views: 2176

Re: Simple print question

I got it to work with the following code: setprintdefault(cprinter) oprn:=printbegin(pname,.f.,.f.,cprinter,.t.) oprn:end() print oprn name pname to cprinter Only then does the program successfully change the default printer. If I leave off any of those ...
by dtussman
Mon Feb 01, 2016 2:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Simple print question
Replies: 9
Views: 2176

Re: Simple print question

In old 2007 version of FWH you could say print oprn name pname to (cprinter) where cprinter was the name of an installed printer. Now with FWH 1507 it ignores the "to" clause and just goes to the default printer. I don't want the user to have to ...
by cnavarro
Sun Jan 31, 2016 10:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Simple print question
Replies: 9
Views: 2176

Re: Simple print question

Figured it out, setprintdefault(cprinter) is the answer.
by dtussman
Sun Jan 31, 2016 5:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Simple print question
Replies: 9
Views: 2176

Simple print question

In old 2007 version of FWH you could say print oprn name pname to (cprinter) where cprinter was the name of an installed printer. Now with FWH 1507 it ignores the "to" clause and just goes to the default printer. I don't want the user to have to ...
by dtussman
Sun Jan 31, 2016 5:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Simple print question
Replies: 9
Views: 2176
Next

Return to advanced search