/** Menu File ************************************** */
if (c.matches(ReForm.PRINT_CONTROL_ID)) {
// new PrinterTest();
// AbstractApplicationController ac = model.getFormularController();
String jobName = "Empty Script";
if ((model.getCurrentHealthRecord().getFirstName() != null) ||
(model.getCurrentHealthRecord().getName() != null)) {
jobName = "Script for ";
if (model.getCurrentHealthRecord().getFirstName() != null)
jobName += model.getCurrentHealthRecord().getFirstName() + " ";
if (model.getCurrentHealthRecord().getName() != null)
jobName += model.getCurrentHealthRecord().getName();
}
PrintSuit.printComponent((SwingView) model.getActualFormularController().getView(), jobName, false);
// PrintSuit.printComponent(model.getGraphicToPrint(),ac.getName());
} else if (c.matches(ReForm.PRINT_SETUP_CONTROL_ID)) {
try {
// Get a PrinterJob
// AbstractApplicationController ac = model.getFormularController();
String jobName = "Empty Script";
if ((model.getCurrentHealthRecord().getFirstName() != null) ||
(model.getCurrentHealthRecord().getName() != null)) {
jobName = "Script for ";
if (model.getCurrentHealthRecord().getFirstName() != null)
jobName += model.getCurrentHealthRecord().getFirstName() + " ";