Page 1 of 1

XP & PDF Working

Posted: Wed Jul 31, 2002 11:12 am
by Mel_Smith_(Guest)
Dear Kathleen & Others,____ Finally, I^ve got XP and RRWRUN 9.0 & PDF working correctly.____ Thanks Kathy for sending me the testpdf.zip package. Installing that in a testpdf directory and running rrwrun /Ttestpdf.txt failed (??). However, if I went in to the pdftest.txt file that you sent and modified the long file name xxxxxxxxxxx xxxxx .rrw to BASICC~1.TXT (which is the shortened file name), then it ran perfectly (?? !).__ __ So that experience proved that it was something *other* than RRWRUN and all the other .DLLs____ The final solution after persistent panicking and changing things back and forth was:____ 1. Ensure my application and the batch file that started it (in my case EST.BAT, and ESTINIT.EXE) are *both* set to *NO* Compatibility mode whatsoever.____ 2. Ensure that RRWRUN *IS* set to Win 98/me compatibility mode.______ Since I tried all sorts of combos without knowing where I was going, I am just plain lucky that I came upon this working combination.______ I^m just left with one remaining annoyance (as is my client):____ When I start up RRWRUN from inside my app with the following command line:____ cCMDLIN := "RRWRRWRUN " + cSOMEREP.RRW + " " + cRECNUM + " /B /WY"____ lERROR := .not. SWPRUNCMD(cCMDLIN,0,"","")____ __ (etc, where I now wait in a 2-second delay loop for rrunout.dbf to be produced, and also wait in another 2-second delay loop until I can gain exclusive access to rrunout.dbf)____ The report lites up on the screen, I can preview/print correctly, etc.____ BUT, when clicking the finish button in RRWRUN preview, I remain on the main Windows desktop, with my app minimized on the taskbar.____ If I hit the <Enter> key, I return quickly to my app where I carry on successfully.____Question: Why does RRWRUN return *before* its completed its task ???____Thanks for any guidance offered.____-Mel Smith__

=> RE: XP & PDF Working

Posted: Fri Aug 02, 2002 11:32 am
by cal
Mel,____I have eliminated the behavior you describe by modifying the swpruncmd() call. I^m attempting to include my code here, which, by the way, detects whether it is running under Win9x or Win2000/NT and works either way.____cRunCmd := cRRpath + "rrwrun " + cRIfile + " /D" + cCurDir + " " + ltrim( str( nRIrec ) ) + ;__ + "/B /O" + cROfile____ if OL_IsNT() // from OSlib__ lRetCd := SwpRunCmd( "cmd.exe /c" + cRunCmd, 0, "", "" )__ else__ lRetCd := SwpRunCmd( "start /w " + cRunCmd, 0, "", "" )__ endif____ if !lRetCd__ ? SwpErrMaj()__ ? SwpErrMin()__ ginkey( 0 )__ endif______See if this helps. ____cal__

=> RE: XP & PDF Working

Posted: Fri Aug 02, 2002 1:33 pm
by Thomas_Freitas_(Guest)
Cal,____ Thank you !______ I^ll try it out at the office on Tuesday (Long weekend coming up !)____-Mel Smith____

==> RE: XP & PDF Working

Posted: Fri Aug 02, 2002 4:18 pm
by Mel_Smith_(Guest)
Cal,____ (on reflection and examination of your code),____ I use essentially the *same* code as you to call RRWRUN. The only difference I see is the function call GINKEY().____ I haven^t heard of this but will search google on the Clipper ng for it.____Thanks,____-Mel Smith__

==> RE: XP & PDF Working

Posted: Fri Aug 02, 2002 4:23 pm
by Mel_Smith_(Guest)
How do you set capatibility to Win98 in R&R V9? She set me files also, but I do not know what you are talking about when you mention a text file. What Text file? and what file name is it that you change to the ~1.____Thanks

===> RE: XP & PDF Working

Posted: Fri Aug 02, 2002 8:41 pm
by Mel_Smith_(Guest)
Thomas,____ Kathleen sent me a new .zip package for *testing* PDF. This package was called TESTPDF.ZIP____ You put this into a sub-dir called C:TESTPDF, then get into that directory, and enter the following command:____ RRWRUN /Ttestpdf.txt____ On *my* system, this failed *unless* I edited testpdf.txt and changed the long file name (in testpdf.txt to my *short* file name.____ After doing the editing, the PDF report was produced perfectly____-Mel Smith__