Diana (Cda) Posted August 19, 2008 Share Posted August 19, 2008 I've found a couple of different ways to print files through AI but haven't figured out what to do about an open, untitled notepad page without doing it "manually" through something like ^p keystrokes. Is there another way besides ^p? Since it's a text file, _FilePrint works; so does this type of thing:ShellExecute($SamePartition & "\APPS\TEXT\npad, Metapad v3.51\APP- Metapad v3.51\Metapad.exe","/p " & $FILE) But this seems to be for just saved files and not unsaved files with data on an unsaved notepad page. thx. Link to comment Share on other sites More sharing options...
JFee Posted August 20, 2008 Share Posted August 20, 2008 ....save the notepad page to some temp directory and delete it when you are done. Do you even need to use notepad? I see your other post... so why can't you just save it all to a variable and do a FileWrite, then print that file. Regards,Josh Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now