I generate monthly reports in Access 2003 for various Boards and Executive Committees. The current report format is PDF. However, one entity is taking each page of their report and copying and pasting them into Power Point slides. Unfortunately, they look awful and make our Department look awful. Is there a way through automation to recreate the slides(format in all) directly from Access to Powerpoint.
Not sure if this will help, but when I create my charts, I create them on a form and make sure they are 9.5 inches wide by about 6 inches high. In the underlying code of the form, I have the following: -
Me.Graph.Requery
-
Me.Form.SetFocus
-
Me.Repaint
-
Me.Graph.Enabled = True
-
Me.Graph.SetFocus
-
DoCmd.RunCommand acCmdCopy
-
Me.cmdNext.SetFocus
-
Me.Graph.Enabled = False
-
Graph is the name of the chart object, and I've found I need every step listed in order to properly copy the chart object to my clipboard.
Then, when I paste them into PowerPoint, I Paste Special... as a "Picture (Windows Metafile)" and they fit my slides perfectly.
Again, not sure if that helps......
12 3954
Dean,
I currently have a DB that generates graphs and charts. Although I don't know of a way to directly output to PowerPoint, I have created separate forms for each "slide" created by the DB, then I copy that graph to the clipboard, and go into PowerPoint and paste the graph as an MS Windows Metafile. This produces very good quality charts in PowerPoint, although it could be time consuming if you have a lot of slides to produce.
I would play around with it and see what you can do....
My problem with the copy and paste method is that the output is larger than the slide and subsequent reduction makes it look awful. However, I will keep trying that method to see if I can get it to look presentable. Thanks for your help.
Not sure if this will help, but when I create my charts, I create them on a form and make sure they are 9.5 inches wide by about 6 inches high. In the underlying code of the form, I have the following: -
Me.Graph.Requery
-
Me.Form.SetFocus
-
Me.Repaint
-
Me.Graph.Enabled = True
-
Me.Graph.SetFocus
-
DoCmd.RunCommand acCmdCopy
-
Me.cmdNext.SetFocus
-
Me.Graph.Enabled = False
-
Graph is the name of the chart object, and I've found I need every step listed in order to properly copy the chart object to my clipboard.
Then, when I paste them into PowerPoint, I Paste Special... as a "Picture (Windows Metafile)" and they fit my slides perfectly.
Again, not sure if that helps......
Thank you for your suggestions. I will try it out.
The biggest problem I have with this approach is the number of pages/forms that are being handled. The whole report is over 70 pages. However, only three divisions are copying and pasting their pdf pages into slides with very poor results.
Yeah, I think MS needs to integrate these two programs a bit more. I know of no way to create PP Presentations from Acces programmatically.... 70 Pages is a lot of cut and paste. Mine is only about 20 slides every few months, so the effort is not intense. My apologies for not being able to help more....
You were very helpful....
Z,
I've been playing with this, and it's kinda cool.... However, I'm having problems doing anything more than updating text boxes....
I am trying to paste a chart into the presentation using the following: -
ppCurrentSlide.Shapes("Graph3").Select
-
DoCmd.RunCommand acCmdPaste
-
I previously put the desired chart onto the clipboard, and it still resides there, as when I Ctrl-C into the open PPT, it does, in fact, paste into the presentation. However, the code says that the command or action 'Paste' isn't available now.
Are there ways to insert objects from Access into PP? If I am not mistaken, this may be more at the heart of the original inquiry.... This solution would save me time, too, so I am no more eager to find an automated solution.....
zmbd 5,501
Expert Mod 4TB
A the bottom the MS link in #9 is the following: http://support.microsoft.com/default...b;en-us;200551
It is supposed to deal with creating charts. I haven't read thru it yet; however, it starts out with the Northwind.mdb so it should help get us back into the ditch on the otherside of the road :) ... been a busy day.
-z
I looked at that, and the bottom line is that the code selects your chart, then edits the datasheet behind it. This will work..... Now, any ideas how to edit/modify tables that may be present on your PowerPoint slides. I am able to identify the ppt table in the slide using this code: -
If OpwrPresent.Shapes(Shpcnt).Type = 19 Then
-
Set shpDataTable = OpwrPresent.Shapes(Shpcnt)
-
' Found the data table.
-
End If
-
Then, I set the datatable object I've defined at that shape I have identified: -
Set oDataTable = shpDataTable.Table
-
However, when I try to access or edit the data in the table, even something as simple as this: -
Debug.Print oDataTable(1, 1)
-
I get the error that object doesn't support this property or method. Any ideas on how to update a table in powerpoint based on a query you have built in your current DB?
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Ekoostikmartin |
last post by:
I know you can generate PowerPoint slides using VBA, but can you do the same
within a C# .NET managed app?
If this is possible, please point me to any relevant resources on that cover
this...
|
by: Ellis Cohen |
last post by:
Announcing complete and extensive PowerPoint slides
for both an introductory and an advanced database course,
along with supporting manuals, available from
http://purl.oclc.org/net/db
The...
|
by: John Smith |
last post by:
Is there anyway to convert/export/copy an Access report into a
Powerpoint slide?
I know I can publish via Excel/Word but these remove formatting etc
and therefore always require some degree of...
|
by: Jerome Ranch |
last post by:
Okay
So I've got pivot tables setup in Access 2003.
Only about 30K records in the current 2005 databases...the pivots
summarize the info in a number of nice ways.
I need to get the pivot tables...
|
by: prossi |
last post by:
I need to build a database of powerpoint slides in MS Access. This database will be set up so a presentation can be queried, and all slides for that persentation will be presented. Also, I need to...
|
by: stuart.medlin |
last post by:
I have recently converted an Access 97 database to Access 2003.
However, I am running into a problem with using
Application.Filesearch
to locate a file in my directory. The code follows:
...
|
by: Rob |
last post by:
Hey folks, my mind is turning into mush...
I created a report tracking program in access that works beyond my
greatest expectations. So of course, I am constantly adding features
to make life...
|
by: Gotejjeken |
last post by:
Does anyone know how I would go about creating powerpoint slides dynamically with C#? I have a DIV element on my page and I would like to be able to include a powerpoint file that fits inside the DIV...
|
by: John Bartley K7AAY |
last post by:
When I output a table's values to XLS, one value in a very small
table, and only one value, is changed.
Here are the values in the table, tblLevel.
LEVEL
H-14
0
1
1.1
|
by: MaggiSinha |
last post by:
I want to make powerpoint slides with the data from sql server 2008
But without COM objects ..can any1 plz help me
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
| |