This is a follow up to this question:
Is there a way to extract AutoCAD Drawings and Pictures from an OLE Object field
So the question remains, how would I go about retrieving the images stored in a Picture OLEObject? If anyone has succeeded in this and could shed some light I would really appreciate it. As I said in my previous post I've searched extensively for this and even tried several times on my own but I can't seem to get anywhere.
Thanks in advance, Rafael.
Edit to include Image. The message is what appears upon double-click. The OLE Object in question shows up if inserted into a Bound Object Frame in a Form.
Edit2: These Picture Objects can be recreated by taking a printscreen or a Snip (using the Snipping Tool on Windows) and pasting with CTRL+V on an OLE Object Field in a Table or a Bound Object Frame in a Form.
Related
i've had a look around for an answer to this but couldn't find a definitive answer (if some can point me at a thread that does answer this i'd appreciate it).
I've created basic database where queries are logged and then reported on. When someone logs a new query it goes into a table called "TBL Main Log", this is done on a basic data entry form and when they select "Country" a field called "Owner" is auto populated. However, when i click save at the bottom, this data doesn't get pulled through into "TBL Main Log". My save is run off a basic close window and save macro.
I have set up my autofill being fed off a combo box for "Country". I'm assuming i need to do something in the event properties after update. I'm pretty limited with my coding abilities so could answers be dumbed down as much as possible for me.
Cheers
Luke
Based on the comments:
me.Refresh on forms forces bound controls to save to the table.
I refer specifically to the 2016 version, but this should also apply to 2013 and 2010.
----- TLDR Summary
Is it possible to use VBA to add a new Slide Master using a method
that I haven't found?
Is it possible to use VBA to access or manipulate the Layouts of
Slide Masters other than the first one in a Presentation object?
I suspect that the answer to both is "No" and that MS has merely
screwed up the exposure of the underlying objects, but others may
know more about programming PPT than me.
------ The Whole Question
Microsoft has deemed PowerPoint unworthy of a macro recorder for lo these many versions (I think it was dropped in either 2003 or 2007 from memory), so no help can be obtained from there.
The linked MSDN "help" item is woeful. It states that the property returns a Master object, though that isn't relevant for the moment.
An Office support page describes a slide master here. A Slide Master seems to be where the presentation's Slide Layouts live, presumably in the SlideMaster's CustomLayouts property, though it's interesting to note that only the first 9 of those CustomLayouts correspond to what you see in the GUI. (I count 11 CustomLayout objects in the SlideMaster in a new, blank presentation.) The numbers change if you add new layouts though the two vertical text layouts never seem to appear in the GUI list. This too is not the problem.
The problem is that you can in fact have more than one Slide Master per presentation by going to the View menu, Slide Master, and then selecting Insert Slide Master. Having multiple Slide Masters is discussed on the Office Support site here.
Frankly I regard this functionality as slightly broken because if you do that, then apply a Theme to the new Slide Master, you end up with a third Slide Master; the original under "Office Theme", a second under "Custom Design", and a third under the name of the Theme that you applied. This too is not in itself a problem. (Though it's worth noting that a Presentation does not have an AddSlideMaster method, which means that it does not seem to be possible to do this by VBA. Not that you necessarily want to, but if you did, you can't. There is only an .AddTitleMaster method which seems to be useless since all presentations have a TitleMaster as far as I can see and if a presentation has one then that method will error out according to the documentation.)
The problem is that the Presentation object does not have a collection of Slide Masters. It has only that one property, SlideMaster, which returns a single Slide Master / Master object.
Accordingly I can't see any way that you can programmatically add a new Slide Master. And even if you used one that is added through the GUI you can't seem to access any Slide Master except for the first one. And therefore you don't seem to be able to access, manipulate or assign any Layout from any Slide Master other than the first one to an individual slide.
Am I correct in this assumption, or am I missing something?
I shall offer thanks in advance even though that is often deleted from questions. Not that this one is likely to attract much attention; I suspect that there may be another Tumbleweed badge in my future.
Perhaps this page will be helpful in understanding it better - http://skp.mvps.org/2007/ppt003.htm
I have a Doors object in a module which has an embedded (OLE) spreadsheet. I need to update some of the cell values (depending on the values of other objects in the module) using a DXL script. I have done some searching and I cannot find anything that looks like an example. I assume that the DXL script will need to open the object, make it's changes and then close the object.
Any help would be greatly appreciated
This thread is really old but if you still need help with this...Off the top of head, I think the way to go about this is to first make a copy of the OLE outside of DOORS, make your changes, and then put it back into DOORS.
To make a copy of the OLE outside of DOORS you can check out this thread:
https://www.ibm.com/developerworks/community/forums/html/topic?id=454298c1-c144-43e7-bc55-af8a6057b500
To put it back into the object text, you can do it similarly using oleInsert() which you can lookup in the DXL Reference Manual.
I have searched thoroughly for an answer to my question concerning a direct way to update a dataviewgrid with the call of a subroutine. but i had to luck, so im going to post the question here, with a little bit of background code and detail to help further your understanding on whats going on.
So i have 2 forms currently one being frmMain, this form contains three buttons
btnAddItem - brings up frmAdd
btnSearch - no code yet
BtnPrint - no code yet
frm main also has a dataviewgrid - currently named dvgPEBGrid
i have this bound to a access database with the datasource named PEBTableBindingSource
now on to frmAdd
i have some fields that eventually get updated to the database
i successfully do this but after the form closes i cannot get the data grid to update
i have tried a lot of things and what usually happens is my data grid just clears all data and i can not get the grid to return data until i close program and reset. any suggestions would be greatly appreciated.
using vs2008 I am trying to create a line graph using vb in a windows form. I have dragged a chart onto the form, and via the properties window, through the series option have changed the type to the graph that I want, which is line. But all the time the data is displayed as a simple bar chart. How do I remedy this please to get the type of chart that I want. Thanks for all and any help
Ah blimey at last I've the answer. The graph was originally put on the form via the designer, but as the data changed I redrew the entire graph not realising that I had to include the line Form1.ChartPlayer1.Series("Series2").ChartType = SeriesChartType.Line
Anyway, thanks to all who looked, I realise that from the vagueness of the question it was hard to help, but at least its solved now.