Click here to Skip to main content
15,886,857 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Avoid "Data Exchange" validation Pin
Code-o-mat14-Apr-10 0:50
Code-o-mat14-Apr-10 0:50 
GeneralRe: Avoid "Data Exchange" validation Pin
Eugen Podsypalnikov14-Apr-10 1:01
Eugen Podsypalnikov14-Apr-10 1:01 
GeneralRe: Avoid "Data Exchange" validation Pin
Code-o-mat14-Apr-10 1:06
Code-o-mat14-Apr-10 1:06 
AnswerRe: Avoid "Data Exchange" validation Pin
Niklas L14-Apr-10 0:57
Niklas L14-Apr-10 0:57 
GeneralRe: Avoid "Data Exchange" validation Pin
Code-o-mat14-Apr-10 1:02
Code-o-mat14-Apr-10 1:02 
AnswerRe: Avoid "Data Exchange" validation Pin
David Crow14-Apr-10 3:08
David Crow14-Apr-10 3:08 
AnswerRe: Avoid "Data Exchange" validation Pin
Maximilien14-Apr-10 4:46
Maximilien14-Apr-10 4:46 
QuestionChanging Printer Settings to ensure Landscape print [modified] Pin
maycockt13-Apr-10 23:27
maycockt13-Apr-10 23:27 
Hi,

My application requires printing of data on different printers.
Is it possible to ensure that after a printer has been chosen (that may not be the default printer), the print layout is in Landscape mode?

I have looked at examples from MSDN, mfcdvmdvcnet.exe (I can't remember the Q number), but that seems oriented to using the default printer, whereas I want to ensure that after printer selection the print format is landscape using the DEVMODE structure.

EDITTED TO ADD - is there also anyway to detect the name of the chosen printer after it has been selected if it is not the default printer?

EDITTED TO CLARIFY - I have two printers, printer1 - the default A4 printer, and printer2 - my A3 printer. When I print I want to select printer2 and set it to be Landscape. How do I, using EnumPrinters or an alternative, get the name of the now selected printer, printer2, and change the DEVMODE to ensure that Landscape is used?

If anyone has a pointer to some code, or an article, that would be great.

TIA

Tony
modified on Wednesday, April 14, 2010 6:06 AM

QuestionRe: Changing Printer Settings to ensure Landscape print Pin
David Crow14-Apr-10 3:13
David Crow14-Apr-10 3:13 
AnswerRe: Changing Printer Settings to ensure Landscape print Pin
@Intersect☺™14-Apr-10 4:22
professional@Intersect☺™14-Apr-10 4:22 
Questionexcel Pin
trioum13-Apr-10 23:18
trioum13-Apr-10 23:18 
QuestionRe: excel Pin
enhzflep13-Apr-10 23:46
enhzflep13-Apr-10 23:46 
AnswerRe: excel Pin
@Intersect☺™14-Apr-10 4:24
professional@Intersect☺™14-Apr-10 4:24 
AnswerRe: excel Pin
ThatsAlok14-Apr-10 19:31
ThatsAlok14-Apr-10 19:31 
Questioncolumn width of ListView Pin
arun_pk13-Apr-10 22:18
arun_pk13-Apr-10 22:18 
AnswerRe: column width of ListView Pin
CPallini13-Apr-10 22:24
mveCPallini13-Apr-10 22:24 
AnswerRe: column width of ListView Pin
KarstenK13-Apr-10 22:54
mveKarstenK13-Apr-10 22:54 
QuestionOpening File that is already exclusively opened Pin
Harsh Shankar13-Apr-10 21:30
Harsh Shankar13-Apr-10 21:30 
AnswerRe: Opening File that is already exclusively opened Pin
Code-o-mat13-Apr-10 21:54
Code-o-mat13-Apr-10 21:54 
QuestionMessage Removed Pin
13-Apr-10 21:23
aks.13-Apr-10 21:23 
AnswerRe: MPEG-4 PinPopular
CPallini13-Apr-10 21:37
mveCPallini13-Apr-10 21:37 
GeneralRe: MPEG-4 Pin
ThatsAlok14-Apr-10 19:31
ThatsAlok14-Apr-10 19:31 
QuestionNeed information how to do screen scraping in windows using VC++/C++ Pin
John50213-Apr-10 20:55
John50213-Apr-10 20:55 
AnswerRe: Need information how to do screen scraping in windows using VC++/C++ Pin
Hadi Dayvary14-Apr-10 3:20
professionalHadi Dayvary14-Apr-10 3:20 
AnswerRe: Need information how to do screen scraping in windows using VC++/C++ Pin
ThatsAlok14-Apr-10 19:32
ThatsAlok14-Apr-10 19:32 

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.