title: How to get IDL from a .NET assembly (or how to to convert TLB to IDL) in a command line?
body: <p>We have a .NET assembly (Aspose.Words actually) and we want clients to use it from COM clients without much hassle.</p>
  
  <ol>
  <li><p>So we ship a .TLB with the assembly so the client can use it from languages such as C++ or Delphi and don't bother extracting .TLB themselves.</p></li>
  <li><p>We also ship an .IDL with the assembly so the clients can look into it if they want to see the enumeration values if they are programming in ASP for example.</p></li>
  <li><p>I want .TLB and .IDL to be generated by a build script. I can generate .TLB no problems. But I cannot generate .IDL (or as an alternative convert .TLB to .IDL) in a command line. I do this manually using OLEVIEW.EXE which is not nice.</p></li>
  </ol>
  
  <p>Heard about Delphi's TLIBIMP.EXE sounds like it could do that, but it does not seem to be available separately.</p>
  
  <p>So the questions are:</p>
  
  <ol>
  <li><p>Anything from the above sounds stupid? </p></li>
  <li><p>How to get .IDL from a .NET assembly using a command line.</p></li>
  </ol>
  
  <p>Thanks.</p>