8 Replies - 3437 Views - Last Post: 17 March 2013 - 12:06 AM Rate Topic: -----

#1 aciforce  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 15-March 13

Q: How to manipulate custom properties of a file?

Posted 15 March 2013 - 11:23 PM

Hi
take a look at properties of below file, you'll see a "Custom" tab there.
Ok this is the question: How to add\remove or read data from this section in my form.

Test File
Is This A Good Question/Topic? 0
  • +

Replies To: Q: How to manipulate custom properties of a file?

#2 lar3ry  Icon User is offline

  • Coding Geezer
  • member icon

Reputation: 310
  • View blog
  • Posts: 1,290
  • Joined: 12-September 12

Re: Q: How to manipulate custom properties of a file?

Posted 16 March 2013 - 06:21 AM

View Postaciforce, on 16 March 2013 - 12:23 AM, said:

take a look at properties of below file, you'll see a "Custom" tab there.
Ok this is the question: How to add\remove or read data from this section in my form.
Test File

Is that a picture? If so, you might want to upload it here as an attachment, rather than posting a URL. A lot of folks are cautious these days, and won't trust an unfamiliar URL from someone who just joined.

This post has been edited by lar3ry: 16 March 2013 - 06:22 AM

Was This Post Helpful? 0
  • +
  • -

#3 aciforce  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 15-March 13

Re: Q: How to manipulate custom properties of a file?

Posted 16 March 2013 - 12:54 PM

mmm.... and what if its not a picture??
no matter if some one can't trust me. actually there's no other way for me.
Thanks
Was This Post Helpful? 0
  • +
  • -

#4 IronRazer  Icon User is offline

  • D.I.C Addict

Reputation: 215
  • View blog
  • Posts: 727
  • Joined: 01-February 13

Re: Q: How to manipulate custom properties of a file?

Posted 16 March 2013 - 01:19 PM

Hello aciforce,
Without us seeing some code for it, Knowing what kind of controle it actually is, or knowing anything else about it besides seeing a picture there is not much that anyone could tell you about how you need to do it. :unsure:
Was This Post Helpful? 0
  • +
  • -

#5 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3236
  • View blog
  • Posts: 10,863
  • Joined: 12-December 12

Re: Q: How to manipulate custom properties of a file?

Posted 16 March 2013 - 02:31 PM

Custom properties are (relatively) easily available for Microsoft Office documents, but more awkward for other document types. This link refers to a DSOFile class. The code sample is in C# but the linked, download, page apparently includes a VB.NET example.
Was This Post Helpful? 2
  • +
  • -

#6 lar3ry  Icon User is offline

  • Coding Geezer
  • member icon

Reputation: 310
  • View blog
  • Posts: 1,290
  • Joined: 12-September 12

Re: Q: How to manipulate custom properties of a file?

Posted 16 March 2013 - 03:25 PM

View Postaciforce, on 16 March 2013 - 01:54 PM, said:

mmm.... and what if its not a picture??
no matter if some one can't trust me. actually there's no other way for me.

Well, it's hard to trust a web page when it's posted by someone I don't know, and from the HTML code for the page, it looks like it is nothing but a login page on some web hosting site in Iran. I'm not real good at Javascript, but I see nothin else of interest on that link. The only pictures I see are .png, and they are all buttons and logos. Most of the text on the page is not in any language I am able read, let alone understand. So, yes, I am distrustful. I've been bitten too many times, and my "sacrificial" computer is not running right now, so there's no way I'm going there. Can you not upload whatever it was supposed to be here?
Was This Post Helpful? 1
  • +
  • -

#7 aciforce  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 15-March 13

Re: Q: How to manipulate custom properties of a file?

Posted 16 March 2013 - 11:01 PM

View Postlar3ry, on 16 March 2013 - 03:25 PM, said:

View Postaciforce, on 16 March 2013 - 01:54 PM, said:

mmm.... and what if its not a picture??
no matter if some one can't trust me. actually there's no other way for me.

Well, it's hard to trust a web page when it's posted by someone I don't know, and from the HTML code for the page, it looks like it is nothing but a login page on some web hosting site in Iran. I'm not real good at Javascript, but I see nothin else of interest on that link. The only pictures I see are .png, and they are all buttons and logos. Most of the text on the page is not in any language I am able read, let alone understand. So, yes, I am distrustful. I've been bitten too many times, and my "sacrificial" computer is not running right now, so there's no way I'm going there. Can you not upload whatever it was supposed to be here?


Well friend, you're right. that's my fault.
I wonder I couldn't find edit button of topic.
Anyway I'm sorry for that and this is the correct link:
http://www.fileconvo...a65d573bce2bfba
Was This Post Helpful? 0
  • +
  • -

#8 lar3ry  Icon User is offline

  • Coding Geezer
  • member icon

Reputation: 310
  • View blog
  • Posts: 1,290
  • Joined: 12-September 12

Re: Q: How to manipulate custom properties of a file?

Posted 16 March 2013 - 11:46 PM

View Postaciforce, on 17 March 2013 - 12:01 AM, said:

Well friend, you're right. that's my fault.
I wonder I couldn't find edit button of topic.
Anyway I'm sorry for that and this is the correct link:
http://www.fileconvo...a65d573bce2bfba

No problem. You don't get an edit button until you've posted a number of times, I think. I'm not sure how many though.

OK.. got the file, and had a look at it. Unfortunately, I don't have SolidWorks, so I can't do much testing with it. There are a lot of references in the SolidWorks forums about custom properties, and a lot about VB.Net code as macros. SolidWorks does have an API, but many of the refernces I saw seemed to say that a.SLDPRT file had to be loaded (preumably into SolidWorks) in order to manipulate it, which I gather is not what you want. The forums could be the best place to start looking.

Sorry I couldn't help more.
Was This Post Helpful? 0
  • +
  • -

#9 aciforce  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 15-March 13

Re: Q: How to manipulate custom properties of a file?

Posted 17 March 2013 - 12:06 AM

Ok I'll check forum.
As "andrewsw" sayes, I think DSOfile.dll is the key of this problem.
Anyway, thanks to all of you.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1