Home > Software engineering >  VC or QT how can directly print file?
VC or QT how can directly print file?

Time:10-13

To do a tool, the task has a few file, the file format is a common doc, PDF, etc., these files directly submitted to the printer?
I have checked online direct call Windows print API, but I'm not successful, what prompted RPN errors,
Online waiting for...

CodePudding user response:

By the GDI for printing in the MFC techniques have been a lot, but I don't know how to realize don't open the file and print directly?

CodePudding user response:

ShellExecute HWND, "print",,,,,,,,,,,

CodePudding user response:

ShellExecute HWND, "print" this is possible all print, how to set up the printing function, such as print range, transverse, longitudinal?

CodePudding user response:

Printing and Print Spooler Functions provides
The following functions provides are 2 print.



AbortDoc
DeviceCapabilities
EndDoc
EndPage
The Escape
ExtEscape
SetAbortProc
StartDoc
StartPage


The following functions provides are 2 access The print spooler.



AbortPrinter
AbortProc
AddForm
AddJob
AddMonitor
AddPort
AddPrinter
AddPrinterConnection
AddPrinterDriver
AddPrinterDriverEx
AddPrintProcessor
AddPrintProvidor
AdvancedDocumentProperties
ClosePrinter
ConfigurePort
ConnectToPrinterDlg
DeleteForm
DeleteMonitor
DeletePort
DeletePrinter
DeletePrinterConnection
DeletePrinterData
DeletePrinterDataEx
DeletePrinterDriver
DeletePrinterDriverEx
DeletePrinterKey
DeletePrintProcessor
DeletePrintProvidor
DocumentProperties
EndDocPrinter
EndPagePrinter
EnumForms
EnumJobs
EnumMonitors
EnumPorts
EnumPrinterData
EnumPrinterDataEx
EnumPrinterDrivers
EnumPrinterKey
EnumPrinters
EnumPrintProcessorDatatypes
EnumPrintProcessors
FindClosePrinterChangeNotification
FindFirstPrinterChangeNotification
FindNextPrinterChangeNotification
FreePrinterNotifyInfo
GetForm
GetJob
GetPrinter
GetPrinterData
GetPrinterDataEx
GetPrinterDriver
GetPrinterDriverDirectory
GetPrintProcessorDirectory
OpenPrinter
PrinterMessageBox
PrinterProperties
ReadPrinter
ResetPrinter
ScheduleJob
SetForm
SetJob
SetPort
SetPrinter
SetPrinterData
SetPrinterDataEx
StartDocPrinter
StartPagePrinter
WritePrinter


Obsolete Functions provides


WaitForPrinterChange



  • Related