Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Rajesh Malhotra
  Where is Rajesh Malhotra?
 Jalandhar
 India
 Rajesh Malhotra
 To: Cesar
  Where is Cesar?
 
 Brazil
 Cesar
 Tags
Subject: RE: Foxypreviewer
Thread ID: 288566 Message ID: 289137 # Views: 39 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Reports and Printers
Date: Tuesday, December 28, 2010 4:35:16 PM         
   


> >
> >
> >
> > Hello Cesar
> >
> > This is not the typo issue. In my above message by mitake I have mentioned "FOXYPREVIEWCALLER" where as actual error is "FOXYPREVIEWERCALLER is not an object". See the below error message in attachment.
> >
> > I have an procedure called "repview" in which I am passing the parameter as report name and following is the code of that procedure.
> >
> > do repview with "Frxreport"
> >
> >
> > Procedure repview
> > ===================
> >
Lparameters fln
> > 
> > 	SET PROCEDURE TO FoxyPreviewerCaller.prg ADDITIVE 
> > 
> > 	LOCAL loReport as "FoxyPreviewerCaller" OF "FoxyPreviewerCaller.Prg"
> > 	loReport = CREATEOBJECT("FoxyPreviewerCaller")
> > 
> > 	WITH loReport as ReportHelper
> > 	.AddReport(fln )
> > 		.RunReport()
> > 	IF .lSaved
> > 		MESSAGEBOX("Report was saved as file:" + CHR(13) + .cDestFile,;
> > 			64, ;
> > 			"Report status")
> >           OpenFile(.cDestFile)
> >    ENDIF
> > ENDWITH

> >
> > The strange thing is that sometime after compiling the project to EXE it runs without any problem. But most of the times after compiling it gives this error and I am unable to figure it out where is the problem. Where as in IDE mode this error does not come.
> >
> > Best Regards
> > Rajesh
> > Dream" is not what you see in sleep…….Is the thing which does not let you sleep.
> >
>
> I truly don't know.
> Maybe you're using an old version of FoxyPreviewerCaller.prg ?
>
> Are you really sure that FoxyPreviewerCaller.Prg is in your PRG ?
> Try also putting a copy of this PRG in your PATH, just for a test.
>
> Regards,
>
> Cesar
> My Blog

Hello Cesar

The problem has been sorted out.

I have used the Locfile function refered from test code given by Ugur (Thanks to Ugur) and kept the FoxyPreviewerCaller.prg in in my project folder from where the EXE runs and not everythings is ok and no error while running from EXE.

Set Procedure To Locfile("FoxyPreviewerCaller.prg") Additive


Now I am facing some problem in PDF. If the width of any column is less in report and we use "Stretch with Overflow" property then while generating PDF , The value does not print. It shows blank in PDF. Please see the below. the column First Name which is Steched Overflow in Report Previewer is blank in PDF file.




Please advice what can be the problem and how to sort it out.

Best Regards
Rajesh
Dream" is not what you see in sleep…….Is the thing which does not let you sleep.

ENTIRE THREAD

Foxypreviewer Posted by Rajesh Malhotra @ 12/22/2010 8:24:06 AM
RE: Foxypreviewer Posted by Cesar @ 12/22/2010 12:18:27 PM
RE: Foxypreviewer Posted by Rajesh Malhotra @ 12/22/2010 4:57:47 PM
RE: Foxypreviewer Posted by Cesar @ 12/22/2010 5:33:58 PM
RE: Foxypreviewer Posted by Rajesh Malhotra @ 12/23/2010 1:23:23 PM
RE: Foxypreviewer Posted by Ugur YILMAZ @ 12/23/2010 3:24:42 PM
RE: Foxypreviewer Posted by Rajesh Malhotra @ 12/24/2010 9:01:26 AM
RE: Foxypreviewer Posted by Rajesh Malhotra @ 12/28/2010 4:35:16 PM
RE: Foxypreviewer Posted by Cesar @ 12/30/2010 1:46:51 AM
RE: Foxypreviewer Posted by Rajesh Malhotra @ 12/30/2010 5:40:12 AM
RE: Foxypreviewer Posted by Rajesh Malhotra @ 1/6/2011 5:55:39 AM
RE: Foxypreviewer Posted by Jignesh Parekh @ 12/30/2010 2:29:02 PM
RE: Foxypreviewer Posted by Rajesh Malhotra @ 12/30/2010 4:18:26 PM