I mean job ID indentifier from printer queue.
For example,
if bitand(dwChange,PRINTER_CHANGE_JOB) = PRINTER_CHANGE_JOB
*print job id identifier from queue (which print job)
endif
if bitand(dwChange,PRINTER_CHANGE_DELETE_JOB) = PRINTER_CHANGE_DELETE_JOB
*print job id identifier from queue
endif
I know about these contants but can you explain why 0x602 means PRINTER_CHANGE_SET_PRINTER and PRINTER_CHANGE_SET_JOB and PRINTER_CHANGE_DELETE_JOB ? ... I must looking for bits change or something like this ?
How can I obtain the changed job ID identifier ?
...IF nhPrinterChangeNotification=INVALID_HANDLE_VALUE
ClosePrinter(nhPrinter)
RETURN -4
ENDIF
*
DO WHILE .T.
nReturnValue=WaitForSingleObject(nhPrinterChangeNotification,INFINITE)
IF nReturnValue=WAIT_OBJECT_0...
Hi Jockey2, Mike,
Finally I found the solution (it's just I'm looking for) to change, without user intervention, the paper size of printer driver to suit paper size of pdf file. I found how to change immediate the default printer too.
From my point of view this topic is closed.
Thank you for...
Hi Jockey2,
I want to print pdf files from a hot folder.
Application must check periodically a folder and print the pdf files without user intervention. But, most important, the application must change driver paper size concordantly with the document paper size from pdf file. For example, if I...
Mike, Jockey2,
I want to print pdf files without user intervention using VFP7 but the problem is that Acrobat Reader 7.0 don't change by itself the paper size in printer driver to suit the paper size of document from pdf file.
Here is my situation:
I want to change printer setting for printing PDF files, NOT for printing .frx files (vfp reports) and NOT for printing .frx files in pdf format.
I have installed Acrobat Reader 7.0.
My default printer has default paper size A4.
When print the PDF file with...
I don't setting printer for report printing, I want to
print files without user intervention from a directory -
I find the file (pdf), I see the page size of document (all pages of document have the same page size), I setting the printer and I print the file using ShellExecute.
I have not access to news2news members area...
I found how to parse cDevMode and how to modify
dmPaperSize,dmPaperLength and dmPaperWidth :
dmPaperSize=buf2word(SUBSTR(cDevmode,47,2))
dmPaperLength=buf2word(SUBSTR(cDevmode,49,2))
dmPaperWidth=buf2word(SUBSTR(cDevmode,51,2))
I know that if a...
thanks jokey2...
Can anybody help me how can I parse cDevMode buffer from example (from link) to obtain and modify paper size, paper lenght, paper width, scale,color, duplex, print quality ?
Thanks Mike but it is more than this.
Using FILETOSTR() you must find "MediaBox" parameter.
MediaBox give you the paper size of pdf document in points.
ex. A4 = 595 x 842 points
For more information you can read PDFReference16.pdf from...
...at GetPrinterA function.
Can anybody help me ?
This is vfp code:
FUNCTION SetMyPrinter
PARAMETERS pPrinterName,dmOrientationPaper,dmFormatPaper
*
LOCAL rezultat,eroare
LOCAL lcPrintDefaults,HandlePrinter,SizeOfPrinterInfo,InfoPrinter
*
DECLARE Integer GetLastError IN kernel32.dll...
I want to use OpenSSL to make a secure connection with pop3 server. I want to use OpenSSL only for secure connection.
Unfortunately I don't have access to the article from http://www.news2news.com/vfp/?function=-1&example=388.
Mike, can you send it to my email ?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.