Sorry, I solved that problem. The next issue is another compile error: type mismatch for this line of code:
The section of code highlighted is VarPtr![]()
ReDim yDevModeData(nRet + 100) As Byte nRet = DocumentProperties(0, hPrinter, sPrinterName, _ VarPtr(yDevModeData(0)), 0, DM_OUT_BUFFER)
Bookmarks