473,326 Members | 2,095 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,326 software developers and data experts.

Access 2003 Output to PowerPoint Slides

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.
Aug 6 '12 #1

✓ answered by twinnyfo

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:

Expand|Select|Wrap|Line Numbers
  1.     Me.Graph.Requery
  2.     Me.Form.SetFocus
  3.     Me.Repaint
  4.     Me.Graph.Enabled = True
  5.     Me.Graph.SetFocus
  6.     DoCmd.RunCommand acCmdCopy
  7.     Me.cmdNext.SetFocus
  8.     Me.Graph.Enabled = False
  9.  
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
twinnyfo
3,653 Expert Mod 2GB
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....
Aug 6 '12 #2
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.
Aug 7 '12 #3
twinnyfo
3,653 Expert Mod 2GB
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:

Expand|Select|Wrap|Line Numbers
  1.     Me.Graph.Requery
  2.     Me.Form.SetFocus
  3.     Me.Repaint
  4.     Me.Graph.Enabled = True
  5.     Me.Graph.SetFocus
  6.     DoCmd.RunCommand acCmdCopy
  7.     Me.cmdNext.SetFocus
  8.     Me.Graph.Enabled = False
  9.  
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......
Aug 7 '12 #4
Thank you for your suggestions. I will try it out.
Aug 7 '12 #5
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.
Aug 8 '12 #6
twinnyfo
3,653 Expert Mod 2GB
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....
Aug 8 '12 #7
You were very helpful....
Aug 8 '12 #8
zmbd
5,501 Expert Mod 4TB
Try this:
http://msdn.microsoft.com/en-us/libr...ffice.11).aspx

Should work like a charm... and it works!

-z

[edit]
http://www.databaselessons.com/acces...werpoint-1.php
not sure where part 2 is and I need a nap

(z_z)

-z
Aug 9 '12 #9
twinnyfo
3,653 Expert Mod 2GB
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:

Expand|Select|Wrap|Line Numbers
  1.     ppCurrentSlide.Shapes("Graph3").Select
  2.     DoCmd.RunCommand acCmdPaste
  3.  
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.....
Aug 9 '12 #10
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
Aug 9 '12 #11
twinnyfo
3,653 Expert Mod 2GB
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:

Expand|Select|Wrap|Line Numbers
  1.     If OpwrPresent.Shapes(Shpcnt).Type = 19 Then
  2.         Set shpDataTable = OpwrPresent.Shapes(Shpcnt)
  3.         ' Found the data table.
  4.     End If
  5.  
Then, I set the datatable object I've defined at that shape I have identified:

Expand|Select|Wrap|Line Numbers
  1. Set oDataTable = shpDataTable.Table
  2.  
However, when I try to access or edit the data in the table, even something as simple as this:

Expand|Select|Wrap|Line Numbers
  1. Debug.Print oDataTable(1, 1)
  2.  
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?
Aug 9 '12 #12
zmbd
5,501 Expert Mod 4TB
once again... I'm flying blind with this; however, you might take a look at http://msdn.microsoft.com/en-us/libr...ffice.11).aspx

-z
Aug 9 '12 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

0
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...
0
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...
10
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...
8
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...
1
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...
2
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: ...
0
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...
0
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...
2
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
2
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
0
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...
0
isladogs
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...
1
isladogs
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...
0
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...
0
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...
1
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)...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
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....

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.