Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 0.95 KB  |  hits: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Editing ODC file in C#
  2. <meta http-equiv=Content-Type content="text/x-ms-odc; charset=utf-8">
  3.        
  4. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  5. xmlns="http://www.w3.org/TR/REC-html40">
  6.  
  7. <head>
  8. <meta http-equiv=Content-Type content="text/x-ms-odc; charset=utf-8">
  9. <meta name=ProgId content=ODC.Table>
  10. <meta name=SourceType content=OLEDB>
  11. <title>Title</title>
  12. <xml id=docprops><o:DocumentProperties
  13.   xmlns:o="urn:schemas-microsoft-com:office:office"
  14.  xmlns="http://www.w3.org/TR/REC-html40">
  15.   <odc:Connection odc:Type="OLEDB">
  16.    <odc:ConnectionString>"ConnectionString"</odc:ConnectionString>
  17.    <odc:CommandType>Table</odc:CommandType>
  18.    <odc:CommandText>"CommandText"</odc:CommandText>
  19.    <odc:SSOApplicationID>testReport</odc:SSOApplicationID>
  20.    <odc:CredentialsMethod>Stored</odc:CredentialsMethod>
  21.   </odc:Connection>
  22.  </odc:OfficeDataConnection>
  23. </xml>
  24. <style>
  25. <!--
  26.     .ODCDataSource
  27.     {
  28.     behavior: url(dataconn.htc);
  29.     }
  30. -->
  31. </style>
  32.  
  33. </head>