I am trying to create a macro that will print 20 financial reports in one run. I can get the reports to print but they run off the page because the print settings need to be Landscape with scaling at 75%. I can go into the manual print settings on screen output and change the settings and print the reports manually. When I record the macro it records everything but the printer settings. I can only select the printer and # of copies. How can I pick up the other printer settings in the macro? My code is as followings (code is just for 1 of 20 reports because I can duplicate it 19 more times when it is perfected) :
# DEXVERSION=14.00.0085.000 2 2
CheckActiveWin dictionary 'default' form 'GL_Financial_Statement_Report' window 'Main_Reports'
CommandExec dictionary 'default' form 'GL_Financial_Statement_Report' command 'Print Button_w_Main_Reports_f_GL_Financial_Statement_Report'
NewActiveWin dictionary 'default' form 'Report_Destination' window 'Report_Destination'
MoveTo field 'OK Button'
ClickHit field 'OK Button'
NewActiveWin dictionary 'default' form 'GL_Financial_Statement_Report' window 'Main_Reports'
NewActiveWin dictionary 'DEX.DIC' form 'Reports Screen' window 'Screen Output'
ActivateWindow dictionary 'DEX.DIC' form 'Reports Screen' window 'Report Screen'
WindowMove dictionary 'DEX.DIC' form 'Reports Screen' window 'Screen Output' pointh 0 pointv 2
ActivateWindow dictionary 'DEX.DIC' form 'Reports Screen' window 'Screen Output'
ActivateWindow dictionary 'DEX.DIC' form 'Reports Screen' window 'Report Screen'
ActivateWindow dictionary 'DEX.DIC' form 'Reports Screen' window 'Screen Output'
WindowSize dictionary 'DEX.DIC' form 'Reports Screen' window 'Report Screen' pointh 1380 pointv 40
ActivateWindow dictionary 'DEX.DIC' form 'Reports Screen' window 'Screen Output'
ActivateWindow dictionary 'DEX.DIC' form 'Reports Screen' window 'Report Screen'
MoveTo field '(L) Print'
ClickHit field '(L) Print'
PrintDialog copies 1 hori_adj 0 vert_adj 0 pages '1' printer 'TSPrint PDF'
CloseWindow dictionary 'DEX.DIC' form 'Reports Screen' window 'Screen Output'
This code works perfect except that I need it to print landscape scaled 75%. Right now my reports run off the page on the right side, big time.
*This post is locked for comments
I have the same question (0)