| John Fried 2006-01-24, 9:23 am |
| After some testing, I determined that the line causing the crash is
r.printer.printerName := "pdfFactory"
I have no idea as to why this should cause five out of fourteen similar
computers to crash but this is what does it.
I finally settled on a work-around to use DEO's marvellous pathing feature.
In the app's .INI file, I added the following lines:
[ObjectPath]
objPath0=C:\
objPath1=E:\BIS\temp
Then I moved the new preview.wfo from the app's home directory to
E:\BIS\temp. Then, in the five 'bad' computers, I simply placed a copy of
the old preview.wfo in their local C:\ path. Voila! Problem solved -- well,
actually problem avoided. ;-) The five 'bad' computers will now get the old
preview form and, if they need to use the pdfFactory features, they can
simply select pdfFactory as their printer and print (which works fine). The
only downside is that those five boxes must go through one more step than
the other nine. Oh well...that is better than crashing the app!
Thanks for everyone's ideas and help last month.
John
John Fried wrote:
> I've written a generic report printing previewer form designed (with
> Plus 2.6 b1899) to use pdfFactory (a nice printer driver replacement
> that will produce PDF files, email them, etc) using the following code:
>
> Line
> ====
> 1 r = new &cRepName.()
> 2 r.startPage := 1
> 3 r.endPage := -1
> 4 r.outPut := 1 // printer
> 5 r.printer.copies := 1
> 6 r.printer.printerSource := 2
> 7 r.printer.printerName := "pdfFactory"
> 8 //r.printer.choosePrinter()
> 9 r.render()
> 10 r.release()
>
> I have recently installed this on a client's server as part of their
> upgrade from dB2K to Plus 2.6. Of 14 terminals, printing works fine on 9
> of them. On the other five, as soon as line 7 is executed, the entire
> dBase app immediately closes - no error messages or anything. Just
> 'poof' gone! If I comment out lines 6 & 7 and uncomment line 8, then it
> works just fine on all machines -- even when the user selects pdfFactory
> as the printer. The client prefers not to have chooseprinter come up
> though.
>
> FWIW, this same code structure has been used with another client for
> years without any problems.
>
> All computers are running the same version of Windows XP, the same
> install of the dBase 2.6 b1899 runtime and the same install of
> pdfFactory (both done by me during the upgrade process). I suspect there
> is _something_ in the network setting or in the Windows setup that is
> different for these five machines, but I can't find anything.
>
> Does anyone have any ideas or clues for what is wrong or where to look?
> I'm at my wits end trying to solve this one.
>
> Thanks,
> John
|