Recent content by LighthouseMike

  1. L

    Word interop: how to gaet the name of an InlineShape object?

    Interesting... I'm surprised the VBA editor and Visual Studio don't catch that. But at this point I think the only logical move is to give up. Wherever the mysterious "Picture 1" comes from, it's clearly not worth any more aggravation than it's already caused. Guess it's something only Word...
  2. L

    Word interop: how to gaet the name of an InlineShape object?

    Yeah, Title threw "System.NotImplementedException: The method or operation is not implemented." Nice and vague (and again, what method/operation?). So an inline shape that Word identifies as "Picture 1" doesn't have a title, because... titles haven't been fully implemented yet? Then why do...
  3. L

    Word interop: how to gaet the name of an InlineShape object?

    Yeah, the docs "I was provided" (meaning MSDN) are as dense, vague and confusing as the API itself. Everything I've managed to dig up from there seems to crash my program with vague errors (even if I try the same thing in VBA), with zero explanation of why. For example, if (in VBA) I do this...
  4. L

    Word interop: how to gaet the name of an InlineShape object?

    That's just the trouble - which properties? Which objects? It's a bit of a maze, cuz it's not like a simple data structure where its properties are its properties; one of its properties is a Range (or was it ShapeRange?) object which has another set of properties and another object and so on...
  5. L

    Word interop: how to gaet the name of an InlineShape object?

    lol yeah, thank you Captain Obvious :D Seriously tho, thanks for trying! I read that as well, but here's the thing: in Word, they still have something "name-like": Word gives them names (titles? labels? pseudonyms? pen names? lol idk, they're names but they're not called a Name). That's...
  6. L

    Word interop: how to gaet the name of an InlineShape object?

    Hey guys, happy Friday! :) As usual, Microsoft's propensity to create ultra-complex hierarchies of objects upon objects upon objects has me completely baffled. So in Word, there are 2 "shape" (picture) object types that I know of: Shapes and InlineShapes. Shapes have a "Name" property that...
  7. L

    UIA question (extremely bizarre lol)

    Hey Skydiver, I had a null-check like yours in place and deleted it sometime yesterday. Sorry I forgot to add it here (lol). Re-adding it didn't really make a difference. Good guess tho! :) I thought of what you said too, about the program still being running. Every obscure Stack Overflow...
  8. L

    UIA question (extremely bizarre lol)

    Hey there, I've been working on a project that automates the "Save As" dialog as part of an automated download process, and I thought it would be best to use UIA (a.k.a. "Microsoft UI Automation", in the System.Windows.Automation namespace) as opposed to simulating keystrokes AutoHotKey-style...
Top Bottom