要做這樣一個工具,任務中有幾個檔案,檔案格式是常見的doc,pdf,等,怎么樣把這些檔案直接提交給列印機?
我查過網上有直接呼叫windows的 print API,不過我沒成功,提示什么 rpn 錯誤。
在線等待 ……
uj5u.com熱心網友回復:
有通過MFC里的 GDI 進行列印的方法挺多,但是不知道怎么實作不打開檔案而直接列印檔案的方法 ?uj5u.com熱心網友回復:
ShellExecute hwnd, "print",。。。。。。。。uj5u.com熱心網友回復:
ShellExecute hwnd, "print" 這樣是可以實作全部列印,怎么設定列印功能呢,比如列印范圍,橫向,縱向?uj5u.com熱心網友回復:
Printing and Print Spooler FunctionsThe following functions are used to print.
AbortDoc
DeviceCapabilities
EndDoc
EndPage
Escape
ExtEscape
SetAbortProc
StartDoc
StartPage
The following functions are used to 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
WaitForPrinterChange
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/129737.html
標籤:基礎類
上一篇:加載DLL出現問題
下一篇:BitBlt 貼圖后只剩黑白色
