I have tried to find a forum on this but couldn't. If one is out there already please lead me to it. I want to print a report and have it automatically be opened for view by pc-dmis before the end of the program. That way the operator can decide whether or not to keep the data and have it exported to the necessary directory. Is this something that is possible?
You can insert a print command to print a file
Then you can probably open it using an external command (not 100% on this but I think it would work)
You could then use flow control commands and File commands to file it where you want it
Got to F5. Under Set-up tab, click box to "automatically update report window during execution". Then after the program is done running before the "print command" that ninja badger was talking about, insert an Comment "Do you want to send data to file" Make it a Yes\No comment. Then after that insert an "If\Go to" command before print command(If comment answer is no, then goto label "print skip". Create a label like "print_skip". Put the label after the print command. Set print command for the directory of your choice. If operator says yes, it continues on and sends data to file. If operator says no, it skips print statement, and goes to "print_skip" label you created. HTH
Ok I figured out how to get it to print with the conditions, but I want the report to be opened automatically for viewing. I tried Insert/external command, and insert/file I/O command/file open. Neither of them worked. The file I/O command opened the file in the background I think so it was open for editing but not for viewing. I do not know what else to try. Any other help would be awesome.
Are you not able to see the report as it runs??? You should be able to watch it run.....and look at entire report before pressing "yes\no". Is your report window not open during execution?
I can see the report window when I run the program. But we plan on teaching shop floor operators to use this basic STI User Interface that does not provide the reports like in PC-Dmis. It does display some results but not the way the operators are used to. It I can get the normal reports to open automatically it will just reduce the amount the operator has to do. If I have to write an external program to do it, I can, but I was hoping there would be an easier way with pc-dmis.