×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to update report?
3

How to update report?

How to update report?

(OP)
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...

RE: How to update report?

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

RE: How to update report?

(OP)
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

RE: How to update report?

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

RE: How to update report?

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

RE: How to update report?

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

RE: How to update report?

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

RE: How to update report?

(OP)
Thank you Steve. Mike and Chriss... I'll try all those remedies...

RE: How to update report?

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

RE: How to update report?

(OP)
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...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close