Lines Matching refs:out

306             FileWriter out = new FileWriter(aFile.toString());  in createWordPrintHelper()  local
309out.write( "eval 'exec perl -wS $0 ${1+\"$@\"}' … in createWordPrintHelper()
310out.write( " if 0; … in createWordPrintHelper()
311out.write( "use strict; … in createWordPrintHelper()
312out.write( "use Time::HiRes; … in createWordPrintHelper()
313out.write( "if ( $^O ne \"MSWin32\") … in createWordPrintHelper()
314out.write( "{ … in createWordPrintHelper()
315out.write( " print 'Windows only.\\n'; … in createWordPrintHelper()
316out.write( " print_usage(); … in createWordPrintHelper()
317out.write( " exit(1); … in createWordPrintHelper()
318out.write( "} … in createWordPrintHelper()
319out.write( " … in createWordPrintHelper()
320out.write( "use Win32::OLE; … in createWordPrintHelper()
321out.write( "use Win32::OLE::Const 'Microsoft Word'; … in createWordPrintHelper()
322out.write( " … in createWordPrintHelper()
323out.write( "# ------ usage ------ … in createWordPrintHelper()
324out.write( "sub print_usage() … in createWordPrintHelper()
325out.write( "{ … in createWordPrintHelper()
326out.write( " print STDERR \"Usage: word_print.pl <Word file> <name of printer> <output file> .… in createWordPrintHelper()
327out.write( " Please use the same string for the name of the printer as you can fi… in createWordPrintHelper()
328out.write( " under Start-Control Panel-Printer and Faxes \\n … in createWordPrintHelper()
329out.write( " The name could look like the the following line: \\n … in createWordPrintHelper()
330out.write( " Apple LaserWriter II NT v47.0 \\n … in createWordPrintHelper()
331out.write( " Sample command line: \\n … in createWordPrintHelper()
332out.write( " execl_print.pl c:\\book1.doc Apple LaserWriter II NT v47.0 c:\\outp… in createWordPrintHelper()
333out.write( "} … in createWordPrintHelper()
334out.write( " … in createWordPrintHelper()
335out.write( " … in createWordPrintHelper()
336out.write( "if ($#ARGV != 2) … in createWordPrintHelper()
337out.write( "{ … in createWordPrintHelper()
338out.write( " print 'Too less arguments.\\n'; … in createWordPrintHelper()
339out.write( " print_usage(); … in createWordPrintHelper()
340out.write( " exit(1); … in createWordPrintHelper()
341out.write( "} … in createWordPrintHelper()
342out.write( " … in createWordPrintHelper()
343 out.write( "my $startWordTime = Time::HiRes::time(); " + ls ); in createWordPrintHelper()
344out.write( "my $Word = Win32::OLE->new('Word.Application'); … in createWordPrintHelper()
345 out.write( "my $stopWordTime = Time::HiRes::time() - $startWordTime; " + ls ); in createWordPrintHelper()
346out.write( "# $Word->{'Visible'} = 1; # if you want to see what's going on … in createWordPrintHelper()
347 out.write( "# , ReadOnly => 1})" + ls ); in createWordPrintHelper()
348 out.write(ls); in createWordPrintHelper()
349 out.write( "my $startLoadWordTime = Time::HiRes::time(); " + ls ); in createWordPrintHelper()
350out.write( "$Word->Documents->Open({Filename => $ARGV[0]}) … in createWordPrintHelper()
351out.write( " || die('Unable to open document ', Win32::OLE->LastError()); … in createWordPrintHelper()
352 out.write( "my $stopLoadWordTime = Time::HiRes::time() - $startLoadWordTime; " + ls ); in createWordPrintHelper()
353 out.write(ls); in createWordPrintHelper()
354 out.write( "my $startPrintWordTime = Time::HiRes::time(); " + ls); in createWordPrintHelper()
355out.write( "my $oldActivePrinte = $Word->{ActivePrinter} ; … in createWordPrintHelper()
356out.write( "$Word->{ActivePrinter} = $ARGV[1]; … in createWordPrintHelper()
357out.write( "$Word->ActiveDocument->PrintOut({ … in createWordPrintHelper()
358out.write( " Background => 0, … in createWordPrintHelper()
359out.write( " Append => 0, … in createWordPrintHelper()
360out.write( " Range => wdPrintAllDocument, … in createWordPrintHelper()
361out.write( " Item => wdPrintDocumentContent, … in createWordPrintHelper()
362out.write( " Copies => 1, … in createWordPrintHelper()
363out.write( " PageType => wdPrintAllPages, … in createWordPrintHelper()
364out.write( " PrintToFile => 1, … in createWordPrintHelper()
365out.write( " OutputFileName => $ARGV[2] … in createWordPrintHelper()
366out.write( " }); … in createWordPrintHelper()
367out.write( "$Word->{ActivePrinter} = $oldActivePrinte; … in createWordPrintHelper()
368 out.write( "my $stopPrintWordTime = Time::HiRes::time() - $startPrintWordTime;" + ls); in createWordPrintHelper()
370out.write( "# ActiveDocument.Close(SaveChanges:=WdSaveOptions.wdDoNotSaveChanges)" + ls ); in createWordPrintHelper()
371 out.write( "my $sVersion = $Word->Application->Version();"+ls); in createWordPrintHelper()
372out.write( "$Word->ActiveDocument->Close({SaveChanges => 0}); … in createWordPrintHelper()
373out.write( "$Word->Quit(); … in createWordPrintHelper()
375 out.write( "local *FILE;" + ls); in createWordPrintHelper()
376 out.write( "if (open(FILE, \">$ENV{HOME}/msofficeloadtimes.txt\"))" + ls); in createWordPrintHelper()
377 out.write( "{" + ls); in createWordPrintHelper()
378 out.write( " print FILE \"name=$ARGV[0]\\n\";" + ls); in createWordPrintHelper()
379 out.write( " print FILE \"WordVersion=$sVersion\\n\";" + ls); in createWordPrintHelper()
380 out.write( " print FILE \"WordStartTime=$stopWordTime\\n\";" + ls); in createWordPrintHelper()
381 out.write( " print FILE \"WordLoadTime=$stopLoadWordTime\\n\";" + ls); in createWordPrintHelper()
382 out.write( " print FILE \"WordPrintTime=$stopPrintWordTime\\n\";" + ls); in createWordPrintHelper()
383 out.write( " close(FILE);" + ls); in createWordPrintHelper()
384 out.write( "}" + ls); in createWordPrintHelper()
385 out.close(); in createWordPrintHelper()
446 FileWriter out = new FileWriter(aFile.toString()); in createWordStoreHelper() local
448out.write( "eval 'exec perl -wS $0 ${1+\"$@\"}' … in createWordStoreHelper()
449out.write( " if 0; … in createWordStoreHelper()
450out.write( "use strict; … in createWordStoreHelper()
451out.write( " … in createWordStoreHelper()
452out.write( "if ( $^O ne \"MSWin32\") … in createWordStoreHelper()
453out.write( "{ … in createWordStoreHelper()
454out.write( " print 'Windows only.\\n'; … in createWordStoreHelper()
455out.write( " print_usage(); … in createWordStoreHelper()
456out.write( " exit(1); … in createWordStoreHelper()
457out.write( "} … in createWordStoreHelper()
458out.write( " … in createWordStoreHelper()
459out.write( "use Win32::OLE; … in createWordStoreHelper()
460out.write( "use Win32::OLE::Const 'Microsoft Word'; … in createWordStoreHelper()
461out.write( " … in createWordStoreHelper()
462out.write( "# ------ usage ------ … in createWordStoreHelper()
463out.write( "sub print_usage() … in createWordStoreHelper()
464out.write( "{ … in createWordStoreHelper()
465out.write( " print STDERR \"Usage: storeViaWord.pl <Word file> <output filer> <output file> \\… in createWordStoreHelper()
466out.write( "} … in createWordStoreHelper()
467out.write( " … in createWordStoreHelper()
468out.write( " … in createWordStoreHelper()
469out.write( "if ($#ARGV != 2) … in createWordStoreHelper()
470out.write( "{ … in createWordStoreHelper()
471out.write( " print 'Too less arguments.\\n'; … in createWordStoreHelper()
472out.write( " print_usage(); … in createWordStoreHelper()
473out.write( " exit(1); … in createWordStoreHelper()
474out.write( "} … in createWordStoreHelper()
475out.write( " … in createWordStoreHelper()
476out.write( " … in createWordStoreHelper()
477out.write( "my $Word = Win32::OLE->new('Word.Application'); … in createWordStoreHelper()
478out.write( "# $Word->{'Visible'} = 1; # if you want to see what's going on … in createWordStoreHelper()
479out.write( "my $Book = $Word->Documents->Open($ARGV[0]) … in createWordStoreHelper()
480out.write( " || die('Unable to open document ', Win32::OLE->LastError()); … in createWordStoreHelper()
481out.write( "# my $oldActivePrinte = $Word->{ActivePrinter} ; … in createWordStoreHelper()
482out.write( "# $Word->{ActivePrinter} = $ARGV[1]; … in createWordStoreHelper()
483out.write( "# $Word->ActiveDocument->PrintOut({ … in createWordStoreHelper()
484out.write( "# Background => 0, … in createWordStoreHelper()
485out.write( "# Append => 0, … in createWordStoreHelper()
486out.write( "# Range => wdPrintAllDocument, … in createWordStoreHelper()
487out.write( "# Item => wdPrintDocumentContent, … in createWordStoreHelper()
488out.write( "# Copies => 1, … in createWordStoreHelper()
489out.write( "# PageType => wdPrintAllPages, … in createWordStoreHelper()
490out.write( "# PrintToFile => 1, … in createWordStoreHelper()
491out.write( "# OutputFileName => $ARGV[2] … in createWordStoreHelper()
492out.write( "# }); … in createWordStoreHelper()
493out.write( "# $Word->{ActivePrinter} = $oldActivePrinte; … in createWordStoreHelper()
494out.write( "$Book->savaAs($ARGV[2], $ARGV[1]); … in createWordStoreHelper()
495out.write( "# ActiveDocument.Close(SaveChanges:=WdSaveOptions.wdDoNotSaveChanges)" + ls ); in createWordStoreHelper()
496out.write( "$Book->Close({SaveChanges => 0}); … in createWordStoreHelper()
497out.write( "$Word->Quit(); … in createWordStoreHelper()
498 out.close(); in createWordStoreHelper()
527 FileWriter out = new FileWriter(aFile.toString()); in createExcelPrintHelper() local
529out.write( "eval 'exec perl -wS $0 ${1+\"$@\"}' … in createExcelPrintHelper()
530out.write( " if 0; … in createExcelPrintHelper()
531out.write( "use strict; … in createExcelPrintHelper()
532out.write( " … in createExcelPrintHelper()
533out.write( "if ( $^O ne \"MSWin32\") … in createExcelPrintHelper()
534out.write( "{ … in createExcelPrintHelper()
535out.write( " print \"Windows only.\\n\"; … in createExcelPrintHelper()
536out.write( " print_usage(); … in createExcelPrintHelper()
537out.write( " exit(1); … in createExcelPrintHelper()
538out.write( "} … in createExcelPrintHelper()
539out.write( " … in createExcelPrintHelper()
540out.write( " … in createExcelPrintHelper()
541out.write( "use Win32::OLE qw(in with); … in createExcelPrintHelper()
542out.write( "use Win32::OLE::Const 'Microsoft Excel'; … in createExcelPrintHelper()
543out.write( " … in createExcelPrintHelper()
544out.write( "# ------ usage ------ … in createExcelPrintHelper()
545out.write( "sub print_usage() … in createExcelPrintHelper()
546out.write( "{ … in createExcelPrintHelper()
547out.write( " print STDERR \"Usage: printViaExcel.pl <Excel file> <name of printer> <output fil… in createExcelPrintHelper()
548out.write( " Please use the same string for the name of the printer as you can fi… in createExcelPrintHelper()
549out.write( " under Start-Control Panel-Printer and Faxes \\n … in createExcelPrintHelper()
550out.write( " The name could look like the the following line: \\n … in createExcelPrintHelper()
551out.write( " Apple LaserWriter II NT v47.0 \\n … in createExcelPrintHelper()
552out.write( " Sample command line: \\n … in createExcelPrintHelper()
553out.write( " execl_print.pl c:\\book1.xls Apple LaserWriter II NT v47.0 c:\\outp… in createExcelPrintHelper()
554out.write( "} … in createExcelPrintHelper()
555out.write( " … in createExcelPrintHelper()
556out.write( " … in createExcelPrintHelper()
557out.write( " … in createExcelPrintHelper()
558out.write( "$Win32::OLE::Warn = 3; # die on errors... … in createExcelPrintHelper()
559out.write( " … in createExcelPrintHelper()
560out.write( " … in createExcelPrintHelper()
561out.write( "if ($#ARGV != 2) … in createExcelPrintHelper()
562out.write( "{ … in createExcelPrintHelper()
563out.write( " print STDERR \"Too less arguments.\\n\"; … in createExcelPrintHelper()
564out.write( " print STDERR \"ARGV[0] $ARGV[0]\\n\"; … in createExcelPrintHelper()
565out.write( " print STDERR \"ARGV[1] $ARGV[1]\\n\"; … in createExcelPrintHelper()
566out.write( " print STDERR \"ARGV[2] $ARGV[2]\\n\"; … in createExcelPrintHelper()
567out.write( " print_usage(); … in createExcelPrintHelper()
568out.write( " exit(1); … in createExcelPrintHelper()
569out.write( "} … in createExcelPrintHelper()
570out.write( " … in createExcelPrintHelper()
571out.write( "my $Excel = Win32::OLE->GetActiveObject('Excel.Application') … in createExcelPrintHelper()
572out.write( " || Win32::OLE->new('Excel.Application', 'Quit'); # get already active Excel … in createExcelPrintHelper()
573out.write( " # application or open new … in createExcelPrintHelper()
574out.write( " … in createExcelPrintHelper()
575out.write( " … in createExcelPrintHelper()
576out.write( " … in createExcelPrintHelper()
577out.write( "my $Book = $Excel->Workbooks->Open( $ARGV[0] ); … in createExcelPrintHelper()
578out.write( " $Book->PrintOut({Copies => 1, … in createExcelPrintHelper()
579out.write( " ActivePrinter => $ARGV[1], … in createExcelPrintHelper()
580out.write( " PrToFileName => $ARGV[2], … in createExcelPrintHelper()
581out.write( " Collate => 1 … in createExcelPrintHelper()
582out.write( " }); … in createExcelPrintHelper()
583 out.write( "# Close worksheets without store changes" + ls ); in createExcelPrintHelper()
584out.write( "# $Book->Close({SaveChanges => 0}); … in createExcelPrintHelper()
585 out.write( "my $sVersion = $Excel->Application->Version();"+ls); in createExcelPrintHelper()
586out.write( "$Excel->Quit(); … in createExcelPrintHelper()
587 out.write( "local *FILE;" + ls); in createExcelPrintHelper()
588 out.write( "if (open(FILE, \">$ENV{HOME}/msofficeloadtimes.txt\"))" + ls); in createExcelPrintHelper()
589 out.write( "{" + ls); in createExcelPrintHelper()
590 out.write( " print FILE \"name=$ARGV[0]\\n\";" + ls); in createExcelPrintHelper()
591 out.write( " print FILE \"ExcelVersion=$sVersion\\n\";" + ls); in createExcelPrintHelper()
595 out.write( " close(FILE);" + ls); in createExcelPrintHelper()
596 out.write( "}" + ls); in createExcelPrintHelper()
597 out.close(); in createExcelPrintHelper()
625 FileWriter out = new FileWriter(aFile.toString()); in createExcelStoreHelper() local
627out.write( "eval 'exec perl -wS $0 ${1+\"$@\"}' … in createExcelStoreHelper()
628out.write( " if 0; … in createExcelStoreHelper()
629out.write( "use strict; … in createExcelStoreHelper()
630out.write( "# This script is automatically created. … in createExcelStoreHelper()
631out.write( " … in createExcelStoreHelper()
632out.write( "use Win32::OLE qw(in with); … in createExcelStoreHelper()
633out.write( "use Win32::OLE::Const 'Microsoft Excel'; … in createExcelStoreHelper()
634out.write( " … in createExcelStoreHelper()
635out.write( "# ------ usage ------ … in createExcelStoreHelper()
636out.write( "sub print_usage() … in createExcelStoreHelper()
637out.write( "{ … in createExcelStoreHelper()
638out.write( " print STDERR \"Usage: savaViaExcel.pl <Excel file> <filefilter> <output file> .\\… in createExcelStoreHelper()
639out.write( " execl_print.pl c:\\book1.xls Apple LaserWriter II NT v47.0 c:\\outp… in createExcelStoreHelper()
640out.write( "} … in createExcelStoreHelper()
641out.write( " … in createExcelStoreHelper()
642out.write( " … in createExcelStoreHelper()
643out.write( " … in createExcelStoreHelper()
644out.write( "$Win32::OLE::Warn = 3; # die on errors... … in createExcelStoreHelper()
645out.write( " … in createExcelStoreHelper()
646out.write( " … in createExcelStoreHelper()
647out.write( "if ($#ARGV != 2) … in createExcelStoreHelper()
648out.write( "{ … in createExcelStoreHelper()
649out.write( " print \"Too less arguments.\\n\"; … in createExcelStoreHelper()
650out.write( " print_usage(); … in createExcelStoreHelper()
651out.write( " exit(1); … in createExcelStoreHelper()
652out.write( "} … in createExcelStoreHelper()
653out.write( " … in createExcelStoreHelper()
654out.write( "my $Excel = Win32::OLE->GetActiveObject('Excel.Application') … in createExcelStoreHelper()
655out.write( " || Win32::OLE->new('Excel.Application', 'Quit'); # get already active Excel … in createExcelStoreHelper()
656out.write( " # application or open new … in createExcelStoreHelper()
657out.write( "my $sFilterParameter = $ARGV[1]; … in createExcelStoreHelper()
658out.write( "my $sFilterName = xlHTML; … in createExcelStoreHelper()
659out.write( "if ($sFilterParameter eq 'xlXMLSpreadsheet') … in createExcelStoreHelper()
660out.write( "{ … in createExcelStoreHelper()
661out.write( " $sFilterName = xlXMLSpreadsheet; … in createExcelStoreHelper()
662out.write( "} … in createExcelStoreHelper()
663out.write( "elsif ($sFilterParameter eq 'xlHTML') … in createExcelStoreHelper()
664out.write( "{ … in createExcelStoreHelper()
665out.write( " $sFilterName = xlHTML; … in createExcelStoreHelper()
666out.write( "} … in createExcelStoreHelper()
667out.write( "else … in createExcelStoreHelper()
668out.write( "{ … in createExcelStoreHelper()
669out.write( " my $undefined; … in createExcelStoreHelper()
670out.write( " $sFilterName = $undefined; … in createExcelStoreHelper()
671out.write( "} … in createExcelStoreHelper()
672out.write( " … in createExcelStoreHelper()
673out.write( "my $Book = $Excel->Workbooks->Open( $ARGV[0] ); … in createExcelStoreHelper()
674out.write( "$Excel->{DisplayAlerts} = 0; … in createExcelStoreHelper()
675out.write( "$Book->saveAs($ARGV[2], … in createExcelStoreHelper()
676out.write( " $sFilterName, … in createExcelStoreHelper()
677out.write( " '', … in createExcelStoreHelper()
678out.write( " '', … in createExcelStoreHelper()
679out.write( " 0, … in createExcelStoreHelper()
680out.write( " 0, … in createExcelStoreHelper()
681out.write( " xlNoChange, … in createExcelStoreHelper()
682out.write( " xlLocalSessionChanges, … in createExcelStoreHelper()
683out.write( " 1); … in createExcelStoreHelper()
684 out.write( "# Close worksheets without store changes" + ls ); in createExcelStoreHelper()
685 out.write( "# $Book->Close({SaveChanges => 0}); " + ls ); in createExcelStoreHelper()
686out.write( "$Excel->Quit(); … in createExcelStoreHelper()
687 out.close(); in createExcelStoreHelper()
715 FileWriter out = new FileWriter(aFile.toString()); in createPowerPointPrintHelper() local
718out.write( "eval 'exec perl -wS $0 $1 $2 ' … in createPowerPointPrintHelper()
719out.write( " if 0; … in createPowerPointPrintHelper()
720out.write( "use strict; … in createPowerPointPrintHelper()
721out.write( " … in createPowerPointPrintHelper()
722out.write( "if ( $^O ne \"MSWin32\") … in createPowerPointPrintHelper()
723out.write( "{ … in createPowerPointPrintHelper()
724out.write( " print \"Windows only.\\n\"; … in createPowerPointPrintHelper()
725out.write( " print_usage(); … in createPowerPointPrintHelper()
726out.write( " exit(1); … in createPowerPointPrintHelper()
727out.write( "} … in createPowerPointPrintHelper()
728out.write( " … in createPowerPointPrintHelper()
729out.write( " … in createPowerPointPrintHelper()
730out.write( "use Win32::OLE qw(in with); … in createPowerPointPrintHelper()
731out.write( "use Win32::OLE::Const 'Microsoft PowerPoint'; … in createPowerPointPrintHelper()
732out.write( " … in createPowerPointPrintHelper()
733out.write( "# ------ usage ------ … in createPowerPointPrintHelper()
734out.write( "sub print_usage() … in createPowerPointPrintHelper()
735out.write( "{ … in createPowerPointPrintHelper()
736out.write( " print STDERR \"Usage: powerpoint_print.pl <PowerPoint file> <name of printer> <ou… in createPowerPointPrintHelper()
737out.write( " Please use the same string for the name of the printer as you can fi… in createPowerPointPrintHelper()
738out.write( " under Start-Control Panel-Printer and Faxes \\n … in createPowerPointPrintHelper()
739out.write( " The name could look like the the following line: \\n … in createPowerPointPrintHelper()
740out.write( " Apple LaserWriter II NT v47.0 \\n … in createPowerPointPrintHelper()
741out.write( " Sample command line: \\n … in createPowerPointPrintHelper()
742out.write( " powerpoint_print.pl c:\\book.ppt Apple LaserWriter II NT v47.0 c:\\… in createPowerPointPrintHelper()
743out.write( "} … in createPowerPointPrintHelper()
744out.write( " … in createPowerPointPrintHelper()
745out.write( " … in createPowerPointPrintHelper()
746out.write( " … in createPowerPointPrintHelper()
747out.write( "$Win32::OLE::Warn = 3; # die on errors... … in createPowerPointPrintHelper()
748out.write( " … in createPowerPointPrintHelper()
749out.write( " … in createPowerPointPrintHelper()
750out.write( "if ($#ARGV < 2) … in createPowerPointPrintHelper()
751out.write( "{ … in createPowerPointPrintHelper()
752out.write( " print \"Too less arguments.\\n\"; … in createPowerPointPrintHelper()
753out.write( " print_usage(); … in createPowerPointPrintHelper()
754out.write( " exit(1); … in createPowerPointPrintHelper()
755out.write( "} … in createPowerPointPrintHelper()
756out.write( " … in createPowerPointPrintHelper()
757out.write( "my $PowerPoint = Win32::OLE->GetActiveObject('PowerPoint.Application') … in createPowerPointPrintHelper()
758out.write( " || Win32::OLE->new('PowerPoint.Application', 'Quit'); # get already active Excel … in createPowerPointPrintHelper()
759out.write( " # application or open new … in createPowerPointPrintHelper()
760out.write( " … in createPowerPointPrintHelper()
761out.write( " … in createPowerPointPrintHelper()
762out.write( " … in createPowerPointPrintHelper()
763out.write( " $PowerPoint->{'Visible'} = 1; … in createPowerPointPrintHelper()
764out.write( " my $Presentation = $PowerPoint->Presentations->Add; … in createPowerPointPrintHelper()
765out.write( " my $Presentation = $PowerPoint->Presentations->Open( $ARGV[0] ); … in createPowerPointPrintHelper()
766out.write( "# we can't change active printer in powerpoint … in createPowerPointPrintHelper()
767 out.write( "# $Presentation->PrintOptions->{ActivePrinter} = $ARGV[1]; " + ls ); in createPowerPointPrintHelper()
768out.write( " print \"Active printer is: \" . $Presentation->PrintOptions->{ActivePrinter} . \"\\… in createPowerPointPrintHelper()
769out.write( " $Presentation->PrintOptions->{PrintInBackground} = 0; … in createPowerPointPrintHelper()
770out.write( " # PrintColorType = 1 means print in color and PrintColorType = 2 means print in gra… in createPowerPointPrintHelper()
771out.write( " $Presentation->PrintOptions->{PrintColorType} = 1; … in createPowerPointPrintHelper()
772out.write( " … in createPowerPointPrintHelper()
773out.write( " $Presentation->PrintOut({PrintToFile => $ARGV[2]}); … in createPowerPointPrintHelper()
774out.write( " sleep 5; … in createPowerPointPrintHelper()
775out.write( " print \"Presentation has been printed\\n\"; … in createPowerPointPrintHelper()
776 out.write( "my $sVersion = $Presentation->Application->Version();"+ls); in createPowerPointPrintHelper()
777 out.write( " $PowerPoint->Quit(); " + ls ); in createPowerPointPrintHelper()
779 out.write( "local *FILE;" + ls); in createPowerPointPrintHelper()
780 out.write( "if (open(FILE, \">$ENV{HOME}/msofficeloadtimes.txt\"))" + ls); in createPowerPointPrintHelper()
781 out.write( "{" + ls); in createPowerPointPrintHelper()
782 out.write( " print FILE \"name=$ARGV[0]\\n\";" + ls); in createPowerPointPrintHelper()
783 out.write( " print FILE \"PowerPointVersion=$sVersion\\n\";" + ls); in createPowerPointPrintHelper()
787 out.write( " close(FILE);" + ls); in createPowerPointPrintHelper()
788 out.write( "}" + ls); in createPowerPointPrintHelper()
789 out.close(); in createPowerPointPrintHelper()
846 System.out.println("couldn't open file " + _sFilename); in getOfficeType()
847 System.out.println("Message: " + fne.getMessage()); in getOfficeType()
851 System.out.println("Exception while reading file " + _sFilename); in getOfficeType()
852 System.out.println("Message: " + ie.getMessage()); in getOfficeType()
860 System.out.println("Couldn't close file " + _sFilename); in getOfficeType()
861 System.out.println("Message: " + ie.getMessage()); in getOfficeType()