Hi, I have recently been trying to change print orientation from portrait to landscape from within a mapbasic v5 application. I have tried using the following win32api functions. 1. documentproperties. this works within a memory device context but to continue printing I have to use the win api print functions which gets complex and cannot use the printwin mapbasic function. 2. setprinterdata. this will change the default devmode binary string holding the printer configuration in the printerdriverdata key under the selected printer in the registry but only becomes available in a new mapinfo/mapbasic session. 3. regsetvalueex. this will change the selected printer default devmode binary string to reflect landscape in the registry but again only becomes available in a new mapinfo/mapbasic session. I am trying to get the above to work in the current mapbasic application but it seems any registry changes only get reflected in a new mapinfo/mapbasic session. vbasic works with all 3 in the current application but there is no need to use these win32api functions when the printer object is available. I dont want to puchase a complete new v5.5 mapbasic to work with v5.5 mapinfo to solve this problem. Any suggestions, pointers, examples. Thanks, John ---------------------------------------------------------------------- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
