Devmode Structure Printer Driver

  • An Integer that specifies the printer driver version number assigned by the printer driver developer. Size: An Integer that specifies the size, in bytes, of the DEVMODE structure. (This value doesn't include the optional dmDriverData member for device-specific data, which can follow this structure.) If an application manipulates only the driver.
  • Foxit Quick PDF Library uses the standard Windows DEVMODE structure for printing which is used by many other programs as well. Unfortunately the printer driver manufacturers don’t use the values specified in the DEVMODE structure and instead use custom undocumented values. This means that the SetupCustomPrinter function works for many drivers but not every driver.
  • Nov 04, 2012 dmSize is the size of the public part of the devmode structure, (on my Win 7 laptop this is 220 bytes regardless of printer), dmExtra is the size of the private area of the devmode structure which varies from printer to printer. Both of these values are added together to allocate the right amount of memory.

The usage of DocumentProperties and SetPrinter API functions gives an opportunity to change the printer settings. But, when using them, I could not have a stable method of changing settings on all Windows OS versions. Below, all possible methods of changing printer parameters will be described and also the solution of how to obtain the stabler behavior for different Windows OS versions. In this article, I will describe the method of setting the printer settings and the problems I faced on different OS versions.

See full list on docs.microsoft.com.

Changing Printer Settings

You can change the printer settings with the help of API:

  • DocumentProperties - retrieves and changes the printer parameters;
  • SetPrinter - determines data for printer, changes the state, and also can manage the printing and tasks.

Changing Settings Using the DocumentProperties Function

To use the DocumentProperties function to change the printer settings, you should do as follows:

  • Get the number of bytes required for the DEVMODE structure:

You can use the A2Kversion with A2000, A2002 and A2003. It can also be converted to A97. Please view the form named README before launching the converter.

New Release: Feb 03/2009 - UPDATED DLL's only!UpdatedDLLsONLY.zip

DynaPDF.DLL is an update from the developer of this library. It fixes a bunch of issues with the conversion of the Snapshot file to PDF. I have also included an update of StrStorage.DLL to fix an issue with Security.

New Release: June 9/2008 - see version History below

A2000ReportToPDF is an Access 2000 database containing a function to convert Reports and Snapshot files to PDF documents. No PDF Printer driver is required. This archive contains new versions of the StrStorage and DynaPDF libraries. Please make sure you delete your old versions, especially if you copied them into your WindowsSystem32 folder.

Version 2.785 May 12/2008 11:11am

New Version of DynapPDF.DLL dated March 11/2008. New Version of StrStorage.DLL dated May 12/2008. Fixed Paper Size Bugs. Added new functionality to allow user to Merge two separate PDF documents into a single PDF document. Exposed Security and Permission properties. Exposed flags for UNICODE conversion of the Text records contained within the Metafile. Change search order for DynaPDF.DLL and StrStorage.DLL - now searches the folder your MDB resides in before searching System32 folder.

You MUST replace StrStorage.DLL, DynaPDF.DLL and modReportToPDF in your own MDB before calling the new functions.

Driver

Version 2.753 March 22/2006 1:40am

Devmode

New Version of StrStorage.DLL dated March 22/2006. Fixed memory bug. Had mistakenly commented out line of code that deleted the Memory EMF created for each page of the report. You only need to replace the StrStorage DLL on your computer.

Version 2.752 February 22/2006 1:52am

New Version of StrStorage.DLL dated Feb. 22/2006. Fixed bug relating to Portrait vs Landscape and the default printer.

Devmode structure printer driver free

Devmode Structure Printer Driver Free

Version 2.751 February 21/2006 12:52am

Finally resolved missing lines produced by the Report Line Tool issue. Added support to allow users to turn off font embedding. New versions of the DynaPDF and StrStorage libraries. Increased execution speed. Added major error handling to StrStorage DLL.

Version 2.01 November 16/2005 12:12am

Devmode

Hp Printer Driver

Major change to project. No more MDE! Core logic is now contained within a standard Windows DLL named StrStorage.dll produced in C++. New version of the DynaPDF library. Neither the DyanPDF DLL or the StrStorage DLL require Registration or a Reference to be set in your MDB. Solution now works with all versions of Access. Several minor bug fixes and huge increase in execution speed.

Version 1.95 November 10/2005 7:41pm

Devmode Structure Printer Driver Windows 10

OK, finally fixed printer Devmode bug. Certain Printer drivers do not fill in the Printer devmode structure completely. Also, certain Printer drivers fill in nonsensical values in the Printer devmode structure. Changed logic to handle this issue.

Version 1.9 November 10/2005

Devmode Structure Printer Driver Downloads

Fixed printer Devmode bug. Certain Printer drivers do not fill in the Printer devmode structure completely.

Version 1.8

Devmode Structure Printer Driver

Added Boolean parameter to signal whether the registered PDF application should be launched to view newly created PDF document. Add StrStorage.DLL to fix issue with parsing of Snapshot file. This will also fix non USA issue( Error Paper Size is not supported). The A2K MDB showed corruption upon conversion from the original A2003 version. I imported everything into a blank MDB and the corruption has disappeared. Please let me know if it resurfaces.

Version 1.7 First release

Comments are closed.