473,394 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Opening a Report does not update OLE Excel object

(apologies for the cross-post.. im not normally in the habit of such things)
SHORT VERSION (for smart people in a hurry):

I need some way to programmatically cause the update of calculated cells,
contained within an Excel OLE object that is embedded on a report in my
database

LONG VERSION (incase i cant write a sumamry to save my life):

I have an Excel spreadsheet embedded in a report. The sheet displays a cell
grid of the current month, and after much messing around, managed to get it
to render the month on a 5-week basis, starting the cells on the correct day
and shading out any days not in the month (so for october 2003 that starts
on a wednesday, MON and TUE on the grid are shaded in..)
it's for employye time sheets kinda thing..

anyways.. it all hinges on the update of just one cell.. The top left of the
sheet contains a cell with the formula:

=DATE( YEAR(TODAY()), MONTH(TODAY()), 1 )

However, this cell (and all otehr calculated cells) are not recalculated
every time the report is run, but on some sort of whimsical basis depending
on if the OLE is Opened, saved, and the changes to the design of the report
are saved.

Is there any way i can programmatically cause the sheet to run an update
(something similar to the "Update Fields" function of a word document)?
I dont even mind if the user has to press a key, as i can tell them to do
that
Nov 12 '05 #1
2 4266
i should have mentioned additionally, that the Excel sheet is an "Unbound
Object Frame" called 'OLEUnbound8' .. whatever this means, in terms of
referencing (i'm an after-creation maintainer of the database)

cheers
matt
Nov 12 '05 #2
TC
Check online help for UpdateOptions. Does that help?

HTH,
TC

matt <cj***@hotmail.com> wrote in message
news:bl**********@hercules.btinternet.com...
(apologies for the cross-post.. im not normally in the habit of such things)

SHORT VERSION (for smart people in a hurry):

I need some way to programmatically cause the update of calculated cells,
contained within an Excel OLE object that is embedded on a report in my
database

LONG VERSION (incase i cant write a sumamry to save my life):

I have an Excel spreadsheet embedded in a report. The sheet displays a cell grid of the current month, and after much messing around, managed to get it to render the month on a 5-week basis, starting the cells on the correct day and shading out any days not in the month (so for october 2003 that starts
on a wednesday, MON and TUE on the grid are shaded in..)
it's for employye time sheets kinda thing..

anyways.. it all hinges on the update of just one cell.. The top left of the sheet contains a cell with the formula:

=DATE( YEAR(TODAY()), MONTH(TODAY()), 1 )

However, this cell (and all otehr calculated cells) are not recalculated
every time the report is run, but on some sort of whimsical basis depending on if the OLE is Opened, saved, and the changes to the design of the report are saved.

Is there any way i can programmatically cause the sheet to run an update
(something similar to the "Update Fields" function of a word document)?
I dont even mind if the user has to press a key, as i can tell them to do
that

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Miguel Orrego | last post by:
Hi, Does anybody know some code that opens a spreadsheet in excel rather than the browser? If possible something that can be used with response.redirect, however this isn't essential. I have a...
9
by: hari krishna | last post by:
hi, I want to send the data from dataset information to Excel through ASP.Net. there will be no XL installed on web server. web server is win 2000 server machine. I am using visual basic code in...
1
by: John | last post by:
Help me please, I'm creating an excel crystal report. The problem is that it is opening in the browser instead of in its own page. I have done this many times and it had worked just fine. I think...
2
by: Jacob.Bruxer | last post by:
Hi everyone, I'm having trouble opening space delimited textfiles in Excel from Visual Basic.net. I'm able to control, open and modify Excel files from Visual Basic, so my Excel reference seems...
2
by: Mad Scientist Jr | last post by:
>From an asp.net web page I want the user to open the results of a SQL query in Excel, as automatically as possible (ie not having to loop through columns, rows, in code). For this,...
0
by: Sajit | last post by:
I am trying to use an Excel file as a template for an Access report. I Linked the Excel file through an unbound frame as an OLE object with the properties set as follows: Source Doc...
3
by: Paul H | last post by:
I have a transactions table and a balance table that look something like this: tblTransactions TransactionID (PK Autonumber) ClientID TransactionDate TransactionAmount (currency field, values...
1
by: mohitpande | last post by:
i am using windows 2003 server and iis 5.1 for hosting my web application and windows xp as client OS i ahv excel reports in my web application which are not opening in client machine i hav...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.