Announcement

Collapse
No announcement yet.

Printing a document with word or notepad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Printing a document with word or notepad

    I would like to distribute wordpad on my CD and launch it to print my documents on the users printer. I know how to make a button that will execute word pad, but I cannot figure how to get my document to open in wordpad. Instead it opens the full blown version of Microsoft Word. Any suggestions would be appreciated.

    Also, does anyone know of any copyright issues involved with distributing word pad in this fashion?

  • #2
    Re: Printing a document with word or notepad

    Hi hobbsdan

    To open a file in wordpad that is included /on the CD/in the distribution/ use the following Action:

    File.Execute

    ... in the "File to Execute" field, add the address of wordpad, ie: "%SrcDir%\wordpad.exe"
    and the address of the file to open in the command line args, ie: "%SrcDir%\textfile.txt"

    You can try out the print command also: "%SrcDir%\wordpad.exe /p"

    I would imagine there are Copyright issues here tho, and since wordpad is included with Windows anyway ...!
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

    Comment


    • #3
      Re: Printing a document with word or notepad

      Thanks for the help-----I was able to get it to work----in addition I appreciate the suggestion about using the print command, but I can't seem to get it to work. I have tried putting the space before the forward / slash and tired the slash in the other direction \, but cannot get it to work. Any ideas on what I am doing wrong?

      Also, is there a way to find wordpad on the users system and then printing the document via that executable.

      Thanks

      Comment


      • #4
        Re: Printing a document with word or notepad

        You need to put the /p in the Command Line Arguments field, probably like so:

        /p %srcdir%\iamfulloftext.txt

        ...and if not, then like so:

        %srcdir%\iamfulloftext.txt /p

        You may also have to put quotes around the path, if it includes spaces:

        "%srcdir%\iamfulloftext.txt" /p
        --[[ Indigo Rose Software Developer ]]

        Comment


        • #5
          Re: Printing a document with word or notepad

          oops! Sorry ... my mistake.

          [img]/ubbthreads/images/icons/smile.gif[/img]
          -
          = Derek
          ["All glory comes from daring to begin" - fortune cookie]

          Comment


          • #6
            Re: Printing a document with word or notepad

            Copyright issues...hmmm.

            Microsoft would eat you if they got wind you included their program on your dik. I found a freely distributable notepad replacement called Metapad that I am using for this purpose. Works great and no royalties!

            Comment


            • #7
              Re: Printing a document with word or notepad

              Are you kidding? Microsoft has already chewed me up and spit me out several times over. [img]/ubbthreads/images/icons/wink.gif[/img]
              Eric Darling
              eThree Media
              http://www.ethreemedia.com

              Comment


              • #8
                Re: Printing a document with word or notepad


                Microsoft would eat you if they got wind you included their program on your dik
                Heh. [img]/ubbthreads/images/icons/smile.gif[/img]
                --[[ Indigo Rose Software Developer ]]

                Comment


                • #9
                  Re: Printing a document with word or notepad

                  My question is why are you wanting to include notepad/wordpad on the disk? AMS creates autoruns for Windows, and wordpad/notepad should be on the machine by default so why include it on the CD?
                  TJ-Tigger
                  "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
                  "Draco dormiens nunquam titillandus."
                  Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

                  Comment


                  • #10
                    Re: Printing a document with word or notepad

                    I wanted to use wordpad to preserve the formatting of my document-----otherwise I need to use a text file. Is there a way to get AMS to find the location of wordpad on the users computer and print the document from the users version of wordpad? If not I think I could just convert my files to PDF and print with acrobat-------surely adobe wouldn't have a problem with me doing it this way--------do you think? I appreciate the suggestions from you all.

                    dan

                    Comment


                    • #11
                      Re: Printing a document with word or notepad

                      Oops..i guess they wouldn't like it there, either. [img]/ubbthreads/images/icons/wink.gif[/img]

                      Comment


                      • #12
                        Re: Printing a document with word or notepad

                        OK,

                        wordpad wil start just with the command "wordpad.exe".
                        It runs because it's a windows-file.

                        programming is very easy, just put the characters in the right order....

                        Comment


                        • #13
                          Re: Printing a document with word or notepad

                          Okay, I've beat my head into the ground trying to get this to work. I am using the command "File execute" and cannot figure out what command to put next. I have tried wordpad.exe,
                          %WinDir%\wordpad.exe, %ProgramFiles%\wordpad.exe, and several others, but cannot come up with the correct configuration. Wordpad.exe is in the Accessories folder on my computer. I am running WinME. Is it in the same directory for all operating systems? If I run this file from my start directory it will run with just the command "wordpad.exe", but I can't seem to get this to work in AMS.

                          Appreciate any help.

                          dan

                          Comment


                          • #14
                            Re: Printing a document with word or notepad

                            Sorry,
                            I woke up this morning and found myself ... a big fool.
                            The name of the program is not Wordpad, but Write.
                            So try Write.exe and it will work !!

                            mario
                            programming is very easy, just put the characters in the right order....

                            Comment


                            • #15
                              Re: Printing a document with word or notepad

                              No need for self judgement, dude... [img]/ubbthreads/images/icons/wink.gif[/img] In case of Windows 2000 it's "wordpad.exe" and it's stored at "C:\Program Files\Windows NT\Accessories\wordpad.exe". As for Windows 98 - "C:\Program Files\Accessories\WORDPAD.EXE" and also "C:\WINDOWS\WRITE.EXE". Worpad.exe (Microsoft WordPad 5.00.1691.1) is an MFC app and it's size is 204,800 bytes, while Write.exe (Windows Write 4.10.1998) is just a sort of launcher for MFC wordpad.exe but not app itself.

                              Comment

                              Working...
                              X