You're right, PrintAll sends the entire ws, and no method to rotating pages.
Here my idea of the script:
Supose a variable in the ws:
PrintPages := (0,0,1,0,0,0,1,1,-1,-1,0,0)
where 0 meaning print, 1 print landscape, other value not print the page.
Now a component that read this variable with guetelement into a vbs array vbP(). If the variable does not exist, send a vbcritical message to the user, or better (I don't like this messages) put a message into an state window.
Now:
for each c in vbP
if c=0 or c=1 then
- sendkey Ctrl+P ' Print
if c=1 then
- sendkey SomeKey ' set portait
end if
- senkey Ctrl+L ' current page (in spanish environment)
endif
- sendkey Shift+PgDn ' Next mathcad page
end for
I don't know if sendkey works inside mathcad script or this must to be doing as an external windows script code.
I think that better than a mathcad component it is an external HTA file, where can provide menus to select the mathcad file to print and (sure) can use the sendkey code.
Regards. Alvaro.