How do I print to a file using question marks?
example: I want the following to put: this is my first line this is my last line in a file. ? ? ? 'this is my first line' ? ? 'this is my last line' I can do this if I set device to printer but that results in a page eject. Did it years ago but lost the source. Wes Wes Wilson, President ERW Custom Programming, Inc. Crescent Lake Plaza 5459 Elizabeth Lake Rd. Waterford, MI 48327 (248) 683-4182 http://www.erw.com/ [email protected] ________________________________ From: "[email protected]" <[email protected]> To: [email protected] Sent: Sunday, March 30, 2014 1:32 PM Subject: ProFox Digest, Vol 131, Issue 38 ----- Forwarded Message ----- Send ProFox mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://mail.leafe.com/mailman/listinfo/profox or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of ProFox digest..." Today's Topics: 1. Re: Fields of type General with linked OLE data. (Ted Roche) 2. Scanning in VFP (Jeff Johnson) 3. RE: Scanning in VFP (Tracy Pearson) 4. Re: Scanning in VFP (Frank Cazabon) 5. Re: Scanning in VFP (Jeff Johnson) 6. Re: Scanning in VFP (Vincent Teachout) 7. Re: Scanning in VFP (Jeff Johnson) 8. RE: Scanning in VFP (jerry foote) 9. Re: Scanning in VFP (Gianni Turri) 10. Re: Scanning in VFP (Jeff Johnson) 11. Re: Scanning in VFP (Paul Hill) 12. RE: VFP executables crash! (Lew Schwartz) 13. VFP9 + Win 8.1 (Lew Schwartz) 14. Re: VFP9 + Win 8.1 (Mike Copeland) 15. RE: VFP9 + Win 8.1 (Allen) 16. RE: VFP9 + Win 8.1 (Darren) 17. RE: VFP9 + Win 8.1 (Allen) 18. Re: Fields of type General with linked OLE data. (Alan Bourke) On 03/27/2014 07:49 AM, Alan Bourke wrote: > This functionality is something I've never used over the years. A good idea. Object Linking and Embedding was great for demos, but problem-filled for production systems. > The customer has now moved the images in question to an identical > directory structure on another server and/or drive, and re-mapped drive > G: to the new share, so that the apparent path to each image is > identical in terms of Windows. However these General fields seem to have > information about the original location embedded somewhere, and the link > is somehow broken. How, somehow? Is there a somehow error message? A somehow lack of image? A somehow C5 or 1429 error? Is there somehow code that shows how the somehow broken is, er, broken? > Is this a feature of General-type fields and OLE data? Is there any > simple way of re-linking ? One of many problems with OLE is that it stores a blob (structured binary data) based on the original image/document, and also the application that stored it into the field, so if you were storing a BMP that's associated with MSPaint, MSPaint would be responsible for storing the data. If you had PaintShopPro on your machine, and associated JPGs with that, it would be PSP that was responsible for storing (and retrieving) the blob of data. I think the GUIDs of the associated executable were also embedded in the blob, along with a bitmap representation and the data. So, one way to try to reproduce this is to recreate one of the original workstations and the software used to store the data. However, since you LINK rather than EMBED, you have the images available outside the app (Whew, that's usually the big concern). So the question is how to link from free image to record. I guess it depends on the answers to the "somehow" questions above. If you're getting a 1429 error with a SYS(18) of "Can't find file G:\something\image.jpg" you could do a TRY...CATCH to get the error message and re-link (using a text link to filenames and/or paths) and discontinue use of the General field. With more info, perhaps we can supply more suggestions. (Author of "OLE is No Bull" introducing Object Linking and Embedding in FoxPro Advisor. The headline was not my fault, nor my opinion.) -- Ted Roche & Associates, LLC http://www.tedroche.com/ Anyone have good luck with scanning directly into VFP? I read a post by Mike Lewis (I think it is) that used EZTWAIN which is now $999! I understand that many TWAIN devices can be programmed. I am interested in your ideas. Thanks, -- Jeff Jeff Johnson [email protected] SanDC, Inc. 623-582-0323 Fax 623-869-0675 http://www.san-dc.com/ Jeff Johnson wrote on 2014-03-28: > Anyone have good luck with scanning directly into VFP? I read a post by > Mike Lewis (I think it is) that used EZTWAIN which is now $999! I > understand that many TWAIN devices can be programmed. > > I am interested in your ideas. > > Thanks, Jeff, What is the end result you need? Images or PDF? In house, a department will use the Fujitsu Scan Snap device to create PDF's of files. It gets configured to run a specific program after the scan is completed. If you need UI access after that, I know of a way to register an instantiated object as COM object in a UI window. As long as both are running as the same user on the workstation, it works. Our in house program does this UI part. Tracy Pearson PowerChurch Software On 28/03/2014 12:48 PM, Jeff Johnson wrote: > Anyone have good luck with scanning directly into VFP? I read a post > by Mike Lewis (I think it is) that used EZTWAIN which is now $999! I > understand that many TWAIN devices can be programmed. > > I am interested in your ideas. > > Thanks, > Jeff, I use Scanner ActiveX from VisCom: http://www.viscomsoft.com/products/scanner/index.html Only cost US$80 -- Frank. Frank Cazabon On 3/28/2014 10:18 AM, Tracy Pearson wrote: > Jeff Johnson wrote on 2014-03-28: >> Anyone have good luck with scanning directly into VFP? I read a post by >> Mike Lewis (I think it is) that used EZTWAIN which is now $999! I >> understand that many TWAIN devices can be programmed. >> >> I am interested in your ideas. >> >> Thanks, > Jeff, > > What is the end result you need? Images or PDF? > > In house, a department will use the Fujitsu Scan Snap device to create PDF's > of files. It gets configured to run a specific program after the scan is > completed. If you need UI access after that, I know of a way to register an > instantiated object as COM object in a UI window. As long as both are > running as the same user on the workstation, it works. Our in house program > does this UI part. > > Tracy Pearson > PowerChurch Software > > -- > Jeff > > Jeff Johnson > [email protected] > SanDC, Inc. > 623-582-0323 > Fax 623-869-0675 > > http://www.san-dc.com/ > What I want to do is have someone scan a document and then I want to copy that document to a folder and add a link to it in VFP in a table. Jeff Johnson wrote: > Anyone have good luck with scanning directly into VFP? I read a post by > Mike Lewis (I think it is) that used EZTWAIN which is now $999! I > understand that many TWAIN devices can be programmed. It's been years, but I used to do it very successfully, first with Kodak Imager (no longer available) and then with EZTwain (which was nowhere NEAR $999 at the time!) Vince: I noticed that EZTwain was about $200 not too long ago. Thanks for your input. On 3/28/2014 2:21 PM, Vincent Teachout wrote: > Jeff Johnson wrote: >> Anyone have good luck with scanning directly into VFP? I read a post >> by Mike Lewis (I think it is) that used EZTWAIN which is now $999! I >> understand that many TWAIN devices can be programmed. > > It's been years, but I used to do it very successfully, first with > Kodak Imager (no longer available) and then with EZTwain (which was > nowhere NEAR $999 at the time!) > [excessive quoting removed by server] Look at csXImage at 170.00 it has twain and a host of image manipulation. jerry -----Original Message----- From: ProFox [mailto:[email protected]] On Behalf Of Jeff Johnson Sent: Friday, March 28, 2014 2:23 PM To: [email protected] Subject: Re: Scanning in VFP On 3/28/2014 10:18 AM, Tracy Pearson wrote: > Jeff Johnson wrote on 2014-03-28: >> Anyone have good luck with scanning directly into VFP? I read a post by >> Mike Lewis (I think it is) that used EZTWAIN which is now $999! I >> understand that many TWAIN devices can be programmed. >> >> I am interested in your ideas. >> >> Thanks, > Jeff, > > What is the end result you need? Images or PDF? > > In house, a department will use the Fujitsu Scan Snap device to create PDF's > of files. It gets configured to run a specific program after the scan is > completed. If you need UI access after that, I know of a way to register an > instantiated object as COM object in a UI window. As long as both are > running as the same user on the workstation, it works. Our in house program > does this UI part. > > Tracy Pearson > PowerChurch Software > > -- > Jeff > > Jeff Johnson > [email protected] > SanDC, Inc. > 623-582-0323 > Fax 623-869-0675 > > http://www.san-dc.com/ > What I want to do is have someone scan a document and then I want to copy that document to a folder and add a link to it in VFP in a table. [excessive quoting removed by server] On Fri, 28 Mar 2014 09:48:04 -0700, Jeff Johnson <[email protected]> wrote: >Anyone have good luck with scanning directly into VFP? I read a post by >Mike Lewis (I think it is) that used EZTWAIN which is now $999! I >understand that many TWAIN devices can be programmed. > >I am interested in your ideas. Hi Jeff, the EZTwain Classic and free version isn't enough for your needs? http://www.eztwain.com/eztwain1.htm -- Gianni On 3/29/2014 7:52 AM, Gianni Turri wrote: > On Fri, 28 Mar 2014 09:48:04 -0700, Jeff Johnson <[email protected]> wrote: > >> Anyone have good luck with scanning directly into VFP? I read a post by >> Mike Lewis (I think it is) that used EZTWAIN which is now $999! I >> understand that many TWAIN devices can be programmed. >> >> I am interested in your ideas. > Hi Jeff, > > the EZTwain Classic and free version isn't enough for your needs? > > http://www.eztwain.com/eztwain1.htm > I did not see that. Thanks!!! -- Jeff Jeff Johnson [email protected] SanDC, Inc. 623-582-0323 Fax 623-869-0675 http://www.san-dc.com/ On 28 March 2014 21:21, Vincent Teachout <[email protected]> wrote: > Jeff Johnson wrote: >> >> Anyone have good luck with scanning directly into VFP? I read a post by >> Mike Lewis (I think it is) that used EZTWAIN which is now $999! I >> understand that many TWAIN devices can be programmed. > > It's been years, but I used to do it very successfully, first with Kodak > Imager (no longer available) and then with EZTwain (which was nowhere NEAR > $999 at the time!) TWAIN was always a PITA as it requires changes to your main event loop. This doesn't work well with higher level languages like Fox. In the far past I wrote a VB6 app that used EZTWAIN. WIA is (was?) an alternative but not all drivers support this. -- Paul Isn't there also a c rtl .dll that needs to be contemporary with the vfp install and not more recent? On Mar 19, 2014 12:24 PM, "Tracy Pearson" <[email protected]> wrote: > Tracy Pearson wrote on 2014-03-19: > > I would check for version mismatches of the runtimes. > > I use this script with on our client machines when they experience the > same. > > > > @echo off echo dim fso>vfpgetver.vbs echo set > > fso=createobject("scripting.filesystemobject")>>vfpgetver.vbs echo > > wscript.echo wscript.arguments(0) ^&" - " ^& > > fso.getfileversion(wscript.arguments(0))>>vfpgetver.vbs for /F > > "delims=," %%i in ('dir %%systemdrive%%\vfp9*.dll /a/s/b') do cscript > > /nologo vfpgetver.vbs "%%i" erase vfpgetver.vbs echo. pause > > > > > I should have explained how to run it. > > Copy it to a versions.cmd file in notepad, then dbl-click it. It opens a > CMD > window and runs locating all VFP9*.DLL files and gives the full path and > version of that DLL. > > VFP will find the VFP9RENU.DLL in the path before looking at the location > where the VFP9R.DLL is located. > > Tracy Pearson > PowerChurch Software > > [excessive quoting removed by server] Do these 2 play nice? --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- So far, no problem here on a Lenovo tablet running 8.0 that was updated to 8.1. I haven't installed the development package, just a VFP9sp2 with runtime. Mike Copeland Lew Schwartz wrote: > Do these 2 play nice? > > > --- StripMime Report -- processed MIME parts --- > multipart/alternative > text/plain (text body -- kept) > text/html[excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

