I use the following commands to allow the user to choose a printer he wants to send output:
@10,10 SAY "Which printer ... (1-HP, 2-Epson, etc) " GET WhichPrinter
...
DO CASE WhichPrinter
CASE=1
SET PRINTER TO LPT1
CASE=2
SET PRINTER TO LPT2
...
ENDCASE
Of course, the...
I haven't understood your explanation above (I am not a VFP expert like you and Marcia ...) Your explanation above, about using sub-class, is cited in the article referred by Marcia, as an alternative solution. And it seems to be the simpler alternative (CREATE CLASS, ..., etc). I think that if...
Hi Marcia, I went to Microsoft.com Knowledge Base article # 192693 , and followed instruction in the MORE INFORMATION section for details, but using MSMAPI32 controls in my program. I continue to get "license error"...
I thought I could add (it seems so normal) the MAPI Session and MAPI...
Following Craig's advice (above) I created a new form in my project and just dropped on it the Mapisession and Mapimessage Active X controls. The form has just the two mentioned controls, nothing more. After that, I created a new executable file of the project.
When I executed the program I got...
Hello Marcia:
I executed the command you provided above and the MSMAPI32.OCX was succesfully registered (the MSMAPI32.OCX and MSMAPI32.DEP files are in the C:\WINDOWS\SYSTEM directory).
But when I tried to executed the application (with the routine provided by Craig Boyd, above) the following...
I simply copied the MSMAPI32.OCX and MSMAPI32.DEP files from a computer (in which the routine provided by Craig works fine) to the C:\WINDOWS\SYSTEM directory at the computer which the routine doesn't work (and these files did not exist on that computer).
After that, I executed the routine and...
After doing what Craig suggested, the following error appears:
"Program error
Class definition MSMAPI.MAPISESSION is not found"
What have I to do in order to solve this problem ?
Thank you,
Michel
I have a VFP application which has inserted in it the helpful routine below, provided in this Forum by craigsboyd (Craig Boyd, thanks again !)
I tested the same application in 6 computers (all running Windows 98SE and with Outlook Express 6 SP1, and with the same directory name) and got the...
I have uninstalled and reinstalled the Outlook Express 5, and now the error is: "Outlook Express is incorrect installed..."
It looks the communication between my application program and the outbox mail in the Outlook Express is faulty.
Michel
Hi Craig !
It worked fine, thanks again !
I copied the very same application program (which now uses your routine above) to my other computer (which has the same Windows 98 SE, and the same Outlook Express 5). When my application program is executed, in order to send message and attachment to...
Dear Craig:
The routine you provided works fine with the attachments ! I'm so glad for the fact that now I can send e-mail with attachments from a VFP program. From now, I am going to insert the routine inside some of my applications.
Some doubts:
1) When VFP created executable files, it gave...
Thank you Craig for your valuable help !
The code you provide in the thread worked fine ! I can now send e-mail from my VFP 6 application.
But unhappily I was not able to send an attachment !
I named the attachment in the line:
aryAttach(1) = "c:\tests\phonedir.pdf"
but the "phonedir.pdf"...
My VFP application prints billing reports to be sent to customers. As I have a field in the application for the customer's e-mail, I would like the application to automatically send the billing reports directly to the customers e-mails. Is there a simple way to accomplish this in VFP 6 ?
Thanks...
Yes, it worked fine with any of the two solutions above.
Thank you Zathras (with this method we do not need to use even the plus sign before the expression!) and Geoff.
I have just opened a new worksheet in Excel: as I type in any cell 10+20 it remains 10+20 in that cell (the result is the string "10+20").
I know that if I want the result I just insert the equal sign before the expression, like this: =10+20 and it results 30 in the cell, and it's ok.
But I've...
I still work with both FoxPro 2.0 (DOS) and Visual FoxPro 6.0. Is it interesting to use my old FoxPro 2.0 programs in FoxPro 2.6 ? (This is because I want to maintains some applications running in MS-DOS). Or is 2.0 and 2.6 versions almost the same ? Which are the major benefits if I use the 2.6...
Instead of putting an information in a cell of a XML data table, I want to put an a link to an e-mail, like this
PRODUCT.XML data:
<product>
<ProductName>Chocolate XYZ</productName>
<ProductMaker>Chocolatier</productMaker>
</product>
In the product maker item, I'd like to give acess to...
After many tests, and help from you, I had the Cancel problem solved:
PrintWhich = ""
PrintWhich = GETPRINTER( ) && Displays the Windows Printer Dialog
IF(EMPTY(PrintWhich))
DEACTIVATE WINDOW MyProgram
RETURN
ENDIF
SET PRINTER TO NAME (PrintWhich) && Prints to the desired printer...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.