Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to update report? 3

Status
Not open for further replies.

Mandy_crw

Programmer
Jul 23, 2020
585
PH
I have created an app that uses report... so eveytime i do edition and revision its the same report that is being called by the app... but there are times that i do revision also in my report.... but eveytime i edit the report and called by my app, it doesnt shows the things that i edited in my report... it always shows the first version of the report... My question is how to update the report? Thanks and God bless...
 
Need more info. A few things offhand:
Is the report in a project?
Do you specify a path when calling the edited report?
Is the edited report actually in that path?
Is the edited report actually saved.
(Check the datetime of the frx file)
Are you calling an exe from a previous build?

Steve
 
Hi Steve... yes the report is in the project...Nope i did not specify the path where the report is... the edited report is in the same folder... Im calling the exe from the new build.... Thanks
 
I think you execute the EXE, but then the report the EXE uses only updates when you build a new EXE. The revision of your report might stay cached and used by the old EXE once, and then reverts back to the report in the EXE. But actually an EXE should start in a new process and not use anything you have in your IDE or cache.

Well, don't worry about the details, but if you use your EXE you should always build a new EXE after changes you made. Whether you changed reports or anything. Changes in your project files only get to the EXE with a new build.

Chriss
 
Hi Mandy,

I think Chris's ideas should solve your problem. But just in case: If you've done all what Chris suggested and the problem persists, I would check 2 other things:

1. Does the before and after (edit) datetime of the frx file differ appropriately?

2. If so, was its folder (path) changed without adjusting its path in the project?

Steve
 
I agree. It seems most likely that you:

1. Included the report in the project when you built the EXE.

2. Modified the FRX.

3. But didn't re-build the EXE.

So the EXE is running the report that was included in the project, and ignoring the one that you modified.

The remedy is either not to include the report in the project; or re-build the EXE after modifying the report.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
I think there are many other possibilities, but I don't assume you modify a report run it (in preview), are fine with the outcome and then don't save your modification.

Anything not saving your modification would also explain it.

Chriss
 
Thank you Steve. Mike and Chriss... I'll try all those remedies...
 
Mandy, one possible shortcut to tell where the problem may lie. After editing the report, run your app in both development mode and exe. If different, the cause is narrowed to the project or build as suggested above.

Just a thought.

Steve
 
Hi Steve Mike and Chriss & everyone... we have solved the problem thru your suggestions, i have rebuild the exe and included all edited forms in the project... Thank you very much...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top