|
||||||
| Perl Discussion for the PERL language - Practical Extraction and Reporting Language, is a programming language often used for creating CGI programs. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
hi,
i would like to know, if i did some programming on perl program. and i printed it out in html form. so if user typed into the input which is the textbox in html form, the result will be printed out in a pop-up notepad, ready for printing. how do i make the pop-up notepad with the result in it? |
| Sponsored Links |
|
|
|
|||||
|
Just label the file as ".txt". Most Windows computer have this set to open with Notepad. Is this what you mean?
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
|
|||
|
Only windows users will have notepad anyway. What you are trying to do is very impractical. Don't try and complicate a simple process: copy and paste. Plus, for all I know, it is not possible anyway.The webserver script can't open a local application, you would have to use an activeX control or maybe javascript.
|
|
|||
|
And that will print the output to a notepad (txt) file?
|
|
|||
|
use Win32::OLE;
my $wrd = CreateObject Win32::OLE "Word.Application" or die $1; $wrd->{'Visible'} = 1; # Lets image that @Array contains the text you want to throw into a word document. my $ToDoc = $wrd->Documents->Add; $selection = $wrd->Selection(); foreach $line (@Array){ $self->TypeLine($wrdObj, $selection, $line); } $ToDoc->SaveAs($destFile); $ToDoc->Close(); # You could also do some formatting, auto open the print window, auto print the document etc.... with: $wrd->Run("Module1.newMacros.PrintIt"); # Note, you must first record the macro. # That should get you started. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Do you write html in notepad? | kisna | HTML Programming | 227 | Today 02:14 PM |
| About HTML | Onur | Tutorials, Classes and Code | 0 | 08-28-2007 06:13 PM |
| HTML Basic Formatting | clookid | Tutorials, Classes and Code | 14 | 03-06-2007 03:10 PM |
| HTML Introduction | clookid | Tutorials, Classes and Code | 5 | 01-08-2007 09:43 PM |
| What is HTML, DHTML and XHTML? | Lop | HTML Programming | 5 | 08-09-2006 11:00 AM |