Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info.
SEARCH THE FOXITE.COM VISUAL FOXPRO FORUM ARCHIVES
Please enter one or more search terms:
search (case insensitive):


order by:


sort:
SEARCH RESULT Results 1 - 25 of 41 for SetPrinter. (0.4368028 seconds)


EDIT command on a PRG/FXP file's context menu
Thread ID: 54886 Andy Smith EDIT command on a PRG/FXP file's context menu I'd like to be able to right-click a PRG or FXP file in Explorer or a folder, and have an Edit command on the context menu which would open VFP6 and MODI COMM the PRG file. I know in general how to create context-menu commands -- what I need to know is the specs. There must be some DDE command which will do it, because the actions already defined for PRGs and FXPs all use DDE and send commands like Open("%1"), SetPrinter("%1") and Print("%1"). Isn't there an Edit("%1") command? Please send me Email if you want: jasmith@dpmllc.com Andy Smith

Faxing withing VFP9
Thread ID: 378400 Kim Powell Faxing withing VFP9 Hi, fellow IT professionals, I am writing a module in VFP9 to allow a FP-generated report to be faxed (using a dedicated SBS fax) to a user-input fax number. Here is a portion of the code: CLOSE ALL CLEAR SET SAFETY OFF SET OLEOBJECT ON FaxServer = CREATEOBJECT ("FaxServer.FaxServer") myFaxDocument = myFaxDocument.Sender myFaxSender.LoadDefaultSender() myFaxDocument.Recipients.ADD("6139665593", "TEST") faxPtrName = GETPRINTER() SETPRINTER TO NAME "192.168.144.01" tmpFaxFile = "J:\sourcesv9\clients\nesdatrak\joendoesig.bmp" myFaxDocument.Body = (tmpFaxFile) myFaxDocument.Submit() On this last line, I am getting the error: "OLE Error 0x8002000e

Printer Re-Direction VFP 9 ISSUE
have the Winodws printer legal names in a table I can load these names up in a public array or public memory vaiables to be used throughout my application. Ok, now that I have everything I need all I have to do is call the SetPrinter function with the appropriate printer name like below and run my report. * --- Now call the DepositSheet report IF Thisform.txtOutPut.Value = "Preview" llSetPrinter = SetPrinter(p_Printer2) WAIT "" TIMEOUT 1

RE: Coding printer redirect
Thread ID: 364588 Pete Sass RE: Coding printer redirect We are using a very old FP2.6a program which has been recompiled in VFP9. The procedure below is used to direct printing to dedicated printers. ie; there is an invoice printer, a jo...

RE: EDIT command on a PRG/FXP file's context menu
Thread ID: 54886 Eric den Doop RE: EDIT command on a PRG/FXP file's context menu I'd like to be able to right-click a PRG or FXP file in Explorer or a folder, and have an Edit command on the context menu which would open VFP6 and MODI COMM the PRG file. > I know in general how to create context-menu commands -- what I need to know is the specs. There must be some DDE command which will do it, because the actions already defined for PRGs and FXPs all use DDE and send commands like Open("%1"), SetPrinter("%1") and Print("%1"). Isn't there an Edit("%1") command? > Please send me Email if you want: jasmith@dpmllc.com > Andy Smith Try: "c:\Program Files\microsoft visual foxpro 8\vfp8.exe" -SHELLOPEN

RE: EDIT command on a PRG/FXP file's context menu
Thread ID: 54886 Andy Smith RE: EDIT command on a PRG/FXP file's context menu I'd like to be able to right-click a PRG or FXP file in Explorer or a folder, and have an Edit command on the context menu which would open VFP6 and MODI COMM the PRG file. > I know in general how to create context-menu commands -- what I need to know is the specs. There must be some DDE command which will do it, because the actions already defined for PRGs and FXPs all use DDE and send commands like Open("%1"), SetPrinter("%1") and Print("%1"). Isn't there an Edit("%1") command? > Please send me Email if you want: jasmith@dpmllc.com > Andy Smith > Try: "c:\Program Files\microsoft visual foxpro 8\vfp8.exe" -SHELLOPEN

RE: Faxing withing VFP9
Thread ID: 378400 Rick Hodgin RE: Faxing withing VFP9 Hi, fellow IT professionals, > I am writing a module in VFP9 to allow a FP-generated report to be faxed (using a dedicated SBS fax) to a user-input fax number. Here is a portion of the code: > CLOSE ALL CLEAR SET SAFETY OFF SET OLEOBJECT ON FaxServer = CREATEOBJECT ("FaxServer.FaxServer") myFaxDocument = myFaxDocument.Sender myFaxSender.LoadDefaultSender() myFaxDocument.Recipients.ADD("6139665593", "TEST") faxPtrName = GETPRINTER() SETPRINTER TO NAME "192.168.144.01" tmpFaxFile = "J:\sourcesv9\clients\nesdatrak\joendoesig.bmp" myFaxDocument.Body = (tmpFaxFile) myFaxDocument.Submit() > On this last line, I am getting the error: "OLE Error

RE: How to change input tray in a report
know there is a way by changing the FRX information, but that changes the setting for the hole report. Sending an API call SetPrinter() is an option wich I am trying at the moment, but it looks like foxpro hates such a call from within

RE: How to change input tray in a report
know there is a way by changing the FRX information, but that changes the setting for the hole report. Sending an API call SetPrinter() is an option wich I am trying at the moment, but it looks like foxpro hates such a call from within

RE: I need to change the setting of printer wit...
Thread ID: 56534 Ali Mehrolhassani RE: I need to change the setting of printer wit... Hello Dear Firend I want to set the printer setting come in under : dmOrientation dmPaperSize dmPaperLength dmPaperWidth dmScale dmCopies dmDefaultSource dmPrintQuality They in DEVMODE struct.for setting these parameters use setprinter or documentproperties api function.I want to use them in my printer setup form to change them from visual foxpro. Thanks I will be touch soon Hello Dear Sir > I want to change the setting of the printer settings.I use struct.vcx and winstruct.vcx and add to it the printer_info_2 and DEVMODE to these for using but thay are not correct compeletly.(only some

RE: Printer Re-Direction VFP 9 ISSUE
is call the SetPrinter function with the appropriate printer name like below and run my report. > * --- Now call the DepositSheet report IF Thisform.txtOutPut.Value = "Preview" llSetPrinter = SetPrinter(p_Printer2) WAIT "" TIMEOUT 1 && Wait to ensure the default printer change had time to complete. IF llSetPrinter = .T. REPORT FORM DepositSheet PREVIEW ENDIF ELSE llSetPrinter = SetPrinter(p_Printer2) WAIT "" TIMEOUT

RE: Printer Re-Direction VFP 9 ISSUE
printer legal names in a table I can load these names up in a public array or public memory vaiables to be used throughout my application. > Ok, now that I have everything I need all I have to do is call the SetPrinter function with the appropriate printer name like below and run my report. > * --- Now call the DepositSheet report IF Thisform.txtOutPut.Value = "Preview" llSetPrinter = SetPrinter(p_Printer2) WAIT "" TIMEOUT 1 && Wait

RE: Printer Re-Direction VFP 9 ISSUE
the SetPrinter function with the appropriate printer name like below and run my report. > * --- Now call the DepositSheet report IF Thisform.txtOutPut.Value = "Preview" llSetPrinter = SetPrinter(p_Printer2) WAIT "" TIMEOUT 1 && Wait to ensure the default printer change had time to complete. IF llSetPrinter = .T. REPORT FORM DepositSheet PREVIEW ENDIF ELSE llSetPrinter = SetPrinter(p_Printer2) WAIT "" TIMEOUT

RE: Printer Re-Direction VFP 9 ISSUE
the Winodws printer legal names in a table I can load these names up in a public array or public memory vaiables to be used throughout my application. > Ok, now that I have everything I need all I have to do is call the SetPrinter function with the appropriate printer name like below and run my report. > * --- Now call the DepositSheet report IF Thisform.txtOutPut.Value = "Preview" llSetPrinter = SetPrinter(p_Printer2) WAIT "" TIMEOUT 1 && Wait

RE: Printer Re-Direction VFP 9 ISSUE
is call the SetPrinter function with the appropriate printer name like below and run my report. > * --- Now call the DepositSheet report IF Thisform.txtOutPut.Value = "Preview" llSetPrinter = SetPrinter(p_Printer2) WAIT "" TIMEOUT 1 && Wait to ensure the default printer change had time to complete. IF llSetPrinter = .T. REPORT FORM DepositSheet PREVIEW ENDIF ELSE llSetPrinter = SetPrinter(p_Printer2) WAIT "" TIMEOUT

RE: Printer Re_Direction Issue
Thread ID: 217597 Pete Sass RE: Printer Re_Direction Issue > > Afternoon Borislav, I want to do this progammatically as I am marketing the product and the client may have different printers. I have tried the above code as I mentioned o...

RE: Printer Re_Direction Issue
Thread ID: 217597 Suresh Adhikari RE: Printer Re_Direction Issue Try this * Specify your printer by name mprinter="\\slp_nt_termserv\Panasonic Printer" mprinter="Epson FX-80+" mprinter="HP LaserJet 1020" * Set as Default =SETPRINTER(mprinter) report form receipt noconsole to printer NODIALOG && print to default printer * report with Save Printer Environment - Unchecked PROCEDURE setPrinter PARAMETERS Name_Of_Printer oNet = CREATEOBJECT("WScript.Network") oNet.SetDefaultPrinter(Name_Of_Printer) RELEASE oNet RETURN ENDPROC Suresh Adhikari

RE: Printer Re_Direction Issue
= "Preview" llSetPrinter = SetPrinter(p_Printer2) && Funtion call to re-direct the Windows installed printer. WAIT "" TIMEOUT 2 && Wait to ensure Windows API call completed. IF llSetPrinter = .T. REPORT FORM UnPaidOrders PREVIEW ENDIF ELSE llSetPrinter = SetPrinter(p_Printer2) && Funtion call to re-direct the Windows installed printer. WAIT "" TIMEOUT 2 && Wait

RE: Printer Re_Direction Issue
Thread ID: 217597 Ilya Rabyy RE: Printer Re_Direction Issue > Pete, I have any problems when I used REPORT FORM ... TO PRINTER PROMPT command. The report always goes to the printer user selects, no matter if it is default or not. I stil...

RE: Printer Re_Direction Issue
Thread ID: 217597 Pete Sass RE: Printer Re_Direction Issue > > Evening Borislav, Playing around with the following code... Note: p_Printer1 contains the legal name of the first printer in Windows p_Printer2 contains the legal na...

RE: SetPrinter API
Thread ID: 66082 Jamie Osborn RE: SetPrinter API Is anyone familiar with the SetPrinter API call? The last parameter is the command, but I can't find any documentation on what the acceptable commands are. I specifically want to change the paper tray. Does anyone know if this is possible with this or some other API? (I originally thought I could just hack the FRX, but realized I can't because I've run this throught XFRX, so already have an XFF file generated by XFRX.) > -BP www.peisch.com I've mucked around with the SetPriner API but it has a nasty structure that needs to be used and I never got far. Can you get multiple printer drivers setup for the printer with settings for each tray

RE: SetPrinter API
Thread ID: 66082 Boudewijn Lutgerink RE: SetPrinter API Is anyone familiar with the SetPrinter API call? The last parameter is the command, but I can't find any documentation on what the acceptable commands are. I specifically want to change the paper tray. Does anyone know if this is possible with this or some other API? (I originally thought I could just hack the FRX, but realized I can't because I've run this throught XFRX, so already have an XFF file generated by XFRX.) > -BP www.peisch.com Sometimes those old vfp disks come in handy Barbara. I have the vfp3 disk here and on that I still have the win32api helpfile: dwCommand specifies the new printer state. This parameter can be zero

RE: SetPrinter API
Thread ID: 66082 Barbara Peisch RE: SetPrinter API Sometimes those old vfp disks come in handy Barbara. I have the vfp3 disk here and on that I still have the win32api helpfile: > dwCommand specifies the new printer state. This parameter can be zero or one of the following values. If it is zero, the printer retains its original state and the printer data is reconfigured by using the structure to which lpbPrinter points. > Constant value PRINTER_CONTROL_PAUSE 1 PRINTER_CONTROL_PURGE 3 PRINTER_CONTROL_RESUME 2 PRINTER_CONTROL_SET_STATUS 4 > If dwCommand is any of the above values, dwLevel must be zero. > Thanks. That answers my question, but doesn't appear to solve

RE: SetPrinter API
Thread ID: 66082 Barbara Peisch RE: SetPrinter API Is anyone familiar with the SetPrinter API call? The last parameter is the command, but I can't find any documentation on what the acceptable commands are. I specifically want to change the paper tray. Does anyone know if this is possible with this or some other API? (I originally thought I could just hack the FRX, but realized I can't because I've run this throught XFRX, so already have an XFF file generated by XFRX.) > -BP www.peisch.com > I've mucked around with the SetPriner API but it has a nasty structure that needs to be used and I never got far. > Can you get multiple printer drivers setup for the printer with settings for each

RE: SetPrinter API
Thread ID: 66082 Barbara Peisch RE: SetPrinter API I think I've found a better solution to this problem. If I hack the FRX, XFRX will respect the tray I've defined, so I can copy the FRX out of the compiled EXE to a temporary FRX name, hack it, generate the XFRX XFF file and report from that. (In case you're wondering why I don't just print directly from the FRX after hacking, I've found that XFF file doesn't necessarily have its page breaks in the same place as a VFP preview window. In order to ensure that the user gets the pages they've asked for, I need to print from the XFF file.) -BP www.peisch.com


Result Page: 1 2