Click here to Skip to main content
16,004,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionC++ Winsock Cli/Svr hostname/address Pin
managetao228-Oct-07 14:44
managetao228-Oct-07 14:44 
AnswerRe: C++ Winsock Cli/Svr hostname/address Pin
jhwurmbach28-Oct-07 23:42
jhwurmbach28-Oct-07 23:42 
QuestionDoing N-Up Printing programatically Pin
Bauxinator28-Oct-07 11:20
Bauxinator28-Oct-07 11:20 
QuestionRe: Doing N-Up Printing programatically Pin
Nelek28-Oct-07 23:42
protectorNelek28-Oct-07 23:42 
AnswerRe: Doing N-Up Printing programatically Pin
Bauxinator29-Oct-07 0:06
Bauxinator29-Oct-07 0:06 
GeneralRe: Doing N-Up Printing programatically Pin
Nelek29-Oct-07 0:20
protectorNelek29-Oct-07 0:20 
GeneralRe: Doing N-Up Printing programatically Pin
Bauxinator29-Oct-07 0:36
Bauxinator29-Oct-07 0:36 
GeneralRe: Doing N-Up Printing programatically Pin
Nelek29-Oct-07 1:29
protectorNelek29-Oct-07 1:29 
It maybe is so... but the thing is not all printers have these solution, so the "standards" won't have the specifical parameters of some devices.

I have taken a look into DEVMODE structure... the possibilities that I have found is a mixing of

dmScale, dmPosition, dmDuplex

But I don't know how to make it working for your conditions.

EDIT:

I have check this DEVMODE.

DEVMODE
The DEVMODE data structure contains information about the device initialization and environment of a printer. 

typedef struct _devicemode {    // dvmd 
    BCHAR  dmDeviceName[CCHDEVICENAME]; 
    WORD   dmSpecVersion; 
    WORD   dmDriverVersion; 
    WORD   dmSize; 
    WORD   dmDriverExtra; 
    DWORD  dmFields; 
    union {
      struct {
        short dmOrientation;
        short dmPaperSize;
        short dmPaperLength;
        short dmPaperWidth;
      };
      POINTL dmPosition;
    };
    short  dmScale; 
    short  dmCopies; 
    short  dmDefaultSource; 
    short  dmPrintQuality; 
    short  dmColor; 
    short  dmDuplex; 
    short  dmYResolution; 
    short  dmTTOption; 
    short  dmCollate; 
    BCHAR  dmFormName[CCHFORMNAME]; 
    WORD  dmLogPixels; 
    DWORD  dmBitsPerPel; 
    DWORD  dmPelsWidth; 
    DWORD  dmPelsHeight; 
    DWORD  dmDisplayFlags; 
    DWORD  dmDisplayFrequency; 
#if(WINVER >= 0x0400) 
    DWORD  dmICMMethod;
    DWORD  dmICMIntent;
    DWORD  dmMediaType;
    DWORD  dmDitherType;
    DWORD  dmReserved1;
    DWORD  dmReserved2;
#if (WINVER >= 0x0500) || (_WIN32_WINNT >= 0x0400)
    DWORD  dmPanningWidth;
    DWORD  dmPanningHeight;
#endif
#endif /* WINVER >= 0x0400 */
} DEVMODE; 



Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

GeneralRe: Doing N-Up Printing programatically Pin
Bauxinator29-Oct-07 2:29
Bauxinator29-Oct-07 2:29 
AnswerRe: Doing N-Up Printing programatically Pin
She_Jack6-Jul-10 22:59
She_Jack6-Jul-10 22:59 
GeneralRe: Doing N-Up Printing programatically Pin
Bauxinator7-Jul-10 7:22
Bauxinator7-Jul-10 7:22 
GeneralRe: Doing N-Up Printing programatically Pin
She_Jack11-Jul-10 22:45
She_Jack11-Jul-10 22:45 
GeneralRe: Doing N-Up Printing programatically Pin
Bauxinator11-Jul-10 22:59
Bauxinator11-Jul-10 22:59 
QuestionRestarting Windows Pin
RomTibi28-Oct-07 9:47
RomTibi28-Oct-07 9:47 
AnswerRe: Restarting Windows Pin
Garth J Lancaster28-Oct-07 10:30
professionalGarth J Lancaster28-Oct-07 10:30 
GeneralRe: Restarting Windows Pin
RomTibi29-Oct-07 6:28
RomTibi29-Oct-07 6:28 
AnswerRe: Restarting Windows Pin
Hamid_RT28-Oct-07 19:09
Hamid_RT28-Oct-07 19:09 
GeneralRe: Restarting Windows Pin
RomTibi29-Oct-07 6:27
RomTibi29-Oct-07 6:27 
GeneralRe: Restarting Windows Pin
Hamid_RT29-Oct-07 7:21
Hamid_RT29-Oct-07 7:21 
GeneralRe: Restarting Windows Pin
ThatsAlok30-Oct-07 1:57
ThatsAlok30-Oct-07 1:57 
GeneralRe: Restarting Windows Pin
RomTibi30-Oct-07 9:00
RomTibi30-Oct-07 9:00 
QuestionNeed help with console character interface Pin
jp-mocs28-Oct-07 9:20
jp-mocs28-Oct-07 9:20 
QuestionReading excel worksheet from clipboard Pin
Andy H28-Oct-07 6:37
Andy H28-Oct-07 6:37 
QuestionUnreacheable subitem prepaint stage. Pin
paper6728-Oct-07 5:36
paper6728-Oct-07 5:36 
QuestionHow to recored and play mp3 files Pin
Mohsen Saad28-Oct-07 0:26
Mohsen Saad28-Oct-07 0:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.