Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hashtable v.s. Dictionary Pin
Alan Balkany13-Jun-08 3:14
Alan Balkany13-Jun-08 3:14 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George15-Jun-08 19:46
George_George15-Jun-08 19:46 
GeneralRe: Hashtable v.s. Dictionary Pin
Alan Balkany16-Jun-08 3:04
Alan Balkany16-Jun-08 3:04 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George17-Jun-08 23:24
George_George17-Jun-08 23:24 
QuestionInstallation file Pin
Genius.Boy5-Jun-08 16:01
Genius.Boy5-Jun-08 16:01 
AnswerRe: Installation file Pin
Gareth H5-Jun-08 16:08
Gareth H5-Jun-08 16:08 
GeneralRe: Installation file Pin
Genius.Boy5-Jun-08 17:00
Genius.Boy5-Jun-08 17:00 
Questionsetting custom file attribues in C# Pin
RodEffect5-Jun-08 15:46
RodEffect5-Jun-08 15:46 
does anyone know how to do this?

Another guy in the office developed a document management system which uses custom file attributes to get the name, revision, drawer etc of some pdf drawings. It was written in vb6 and we've previously had vba cad macros that export the drawings to pdf with the attributes filled out.

we've moved to new drawing software and I'm making the new version of the exporting to pdf, its in C# now, I've got it all sorted but I am stumped on how to make custom file attributes...

I've got a FileInfo on one of the PDF files, but the Attributes property only allows you to set attributes from the FileAttributes enumeration which has things like Hidden, Archive, ReadOnly etc.

How do you set an attribute that is not a part of that enumeration? if there is no way to do it in .net is there a dll i can import from windows api or something?

There's a GetFileVersionInfo function you can import from version.dll (windows 32 com/sdk?) to find the "version" of files, but we've got custom attributes like "DocRevis" ...

Surely there is a way to do it?
AnswerRe: setting custom file attribues in C# Pin
RodEffect9-Jun-08 20:46
RodEffect9-Jun-08 20:46 
Questionyesterday's time Pin
George_George5-Jun-08 15:28
George_George5-Jun-08 15:28 
AnswerRe: yesterday's time Pin
Gareth H5-Jun-08 15:35
Gareth H5-Jun-08 15:35 
GeneralRe: yesterday's time Pin
George_George5-Jun-08 15:40
George_George5-Jun-08 15:40 
GeneralRe: yesterday's time Pin
Gareth H5-Jun-08 15:54
Gareth H5-Jun-08 15:54 
GeneralRe: yesterday's time Pin
George_George5-Jun-08 16:01
George_George5-Jun-08 16:01 
GeneralRe: yesterday's time Pin
Gareth H5-Jun-08 16:05
Gareth H5-Jun-08 16:05 
GeneralRe: yesterday's time Pin
George_George5-Jun-08 16:13
George_George5-Jun-08 16:13 
GeneralRe: yesterday's time Pin
Christian Graus5-Jun-08 17:23
protectorChristian Graus5-Jun-08 17:23 
GeneralRe: yesterday's time Pin
George_George5-Jun-08 18:44
George_George5-Jun-08 18:44 
GeneralRe: yesterday's time Pin
Alex@UEA5-Jun-08 21:12
Alex@UEA5-Jun-08 21:12 
GeneralRe: yesterday's time Pin
George_George5-Jun-08 21:21
George_George5-Jun-08 21:21 
GeneralRe: yesterday's time Pin
PIEBALDconsult5-Jun-08 17:06
mvePIEBALDconsult5-Jun-08 17:06 
GeneralRe: yesterday's time Pin
George_George5-Jun-08 18:27
George_George5-Jun-08 18:27 
QuestionImageList help Pin
decoyoctopus5-Jun-08 14:33
decoyoctopus5-Jun-08 14:33 
AnswerRe: ImageList help Pin
Gareth H5-Jun-08 15:32
Gareth H5-Jun-08 15:32 
GeneralRe: ImageList help Pin
decoyoctopus6-Jun-08 13:56
decoyoctopus6-Jun-08 13:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.