Message-ID: <445267560.8725.1711657939512.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8724_535396070.1711657939512" ------=_Part_8724_535396070.1711657939512 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Area.ImportData(Object(,), String(), DataImportProperties)</titl= e> <!--[if gte mso 9]> <xml> <o:OfficeDocumentSettings> <o:TargetScreenSize>1024x640</o:TargetScreenSize> <o:PixelsPerInch>72</o:PixelsPerInch> <o:AllowPNG/> </o:OfficeDocumentSettings> <w:WordDocument> <w:View>Print</w:View> <w:Zoom>90</w:Zoom> <w:DoNotOptimizeForBrowser/> </w:WordDocument> </xml> <![endif]--> <style> <!-- @page Section1 { size: 8.5in 11.0in; margin: 1.0in; mso-header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; } td { page-break-inside: avoid; } tr { page-break-after: avoid; } div.Section1 { page: Section1; } /* Confluence print stylesheet. Common to all themes for print medi= a */ /* Full of !important until we improve batching for print CSS */ #main { padding-bottom: 1em !important; /* The default padding of 6em is too mu= ch for printouts */ } body { font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 10pt; line-height: 1.2; } body, #full-height-container, #main, #page, #content, .has-personal-sidebar= #content { background: #fff !important; color: #000 !important; border: 0 !important; width: 100% !important; height: auto !important; min-height: auto !important; margin: 0 !important; padding: 0 !important; display: block !important; } a, a:link, a:visited, a:focus, a:hover, a:active { color: #000; } #content h1, #content h2, #content h3, #content h4, #content h5, #content h6 { font-family: Arial, Helvetica, FreeSans, sans-serif; page-break-after: avoid; } pre { font-family: Monaco, "Courier New", monospace; } #header, .aui-header-inner, #navigation, #sidebar, .sidebar, #personal-info-sidebar, .ia-fixed-sidebar, .page-actions, .navmenu, .ajs-menu-bar, .noprint, .inline-control-link, .inline-control-link a, a.show-labels-editor, .global-comment-actions, .comment-actions, .quick-comment-container, #addcomment { display: none !important; } .comment .date::before { content: none !important; /* remove middot for print view */ } h1.pagetitle img { height: auto; width: auto; } .print-only { display: block; } #footer { position: relative !important; /* CONF-17506 Place the footer at end of= the content */ margin: 0; padding: 0; background: none; clear: both; } #poweredby { border-top: none; background: none; } #poweredby li.print-only { display: list-item; font-style: italic; } #poweredby li.noprint { display:none; } /* no width controls in print */ .wiki-content .table-wrap, .wiki-content p, .panel .codeContent, .panel .codeContent pre, .image-wrap { overflow: visible !important; } /* TODO - should this work? */ #children-section, #comments-section .comment, #comments-section .comment .comment-body, #comments-section .comment .comment-content, #comments-section .comment p { page-break-inside: avoid; } #page-children a { text-decoration: none; } /** hide twixies the specificity here is a hack because print styles are getting loaded before the base styles. */ #comments-section.pageSection .section-header, #comments-section.pageSection .section-title, #children-section.pageSection .section-header, #children-section.pageSection .section-title, .children-show-hide { padding-left: 0; margin-left: 0; } .children-show-hide.icon { display: none; } /* personal sidebar */ .has-personal-sidebar #content { margin-right: 0px; } .has-personal-sidebar #content .pageSection { margin-right: 0px; } --> </style> </head> <body> <h1>Area.ImportData(Object(,), String(), DataImportProperties)</h1> <div class=3D"Section1"> <h2 id=3D"Area.ImportData(Object(,),String(),DataImportProperties)-= Description">Description</h2>=20 <p>Imports data from a rectangular array of objects to the specified <a hre= f=3D"/display/EW8/Area">Area</a>. The new data will <span style=3D"text-dec= oration: underline;">overwrite</span> values and formulas in the target wor= ksheet cells, but existing formatting will be preserved.</p>=20 <div class=3D"code panel pdl" style=3D"border-width: 1px;"> <div class=3D"codeHeader panelHeader pdl" style=3D"border-bottom-width: 1px= ;"> <b>C#</b> </div> <div class=3D"codeContent panelContent pdl">=20 <pre class=3D"theme: Default; brush: csharp; collapse: false; gutter: false= " style=3D"font-size:12px;"> public Area ImportData(System.Object[,] data, System.String[] columnNames,= DataImportProperties props) </pre>=20 </div> </div>=20 <div class=3D"code panel pdl" style=3D"border-width: 1px;"> <div class=3D"codeHeader panelHeader pdl" style=3D"border-bottom-width: 1px= ;"> <b>vb.net</b> </div> <div class=3D"codeContent panelContent pdl">=20 <pre class=3D"theme: Default; brush: vbnet; collapse: false; gutter: false"= style=3D"font-size:12px;"> Public Function ImportData(ByVal data As Object(,), ByVal columnNames As St= ring(), ByVal props As DataImportProperties) As Area </pre>=20 </div> </div>=20 <h2 id=3D"Area.ImportData(Object(,),String(),DataImportProperties)-Paramete= rs">Parameters</h2>=20 <h6 id=3D"Area.ImportData(Object(,),String(),DataImportProperties)-data">da= ta</h6>=20 <p>A rectangular array of values to import to the worksheet. The first dime= nsion corresponds to row and the second to column.<br /> Thus, an array of = data { {"A","X"},{"B","Y"},{"C= ","Z"} } would be inserted into the worksheet as:<br class= =3D"atl-forced-newline" /></p>=20 <div class=3D"table-wrap"> <div class=3D"table-wrap"> <table class=3D"confluenceTable"> <tbody>=20 <tr>=20 <td class=3D"confluenceTd"><p>A</p></td>=20 <td class=3D"confluenceTd"><p>X</p></td>=20 </tr>=20 <tr>=20 <td class=3D"confluenceTd"><p>B</p></td>=20 <td class=3D"confluenceTd"><p>Y</p></td>=20 </tr>=20 <tr>=20 <td class=3D"confluenceTd"><p>C</p></td>=20 <td class=3D"confluenceTd"><p>Z</p></td>=20 </tr>=20 </tbody> </table> </div> </div>=20 <p> If you enable <a href=3D"/display/EW8/DataImportProperties.Transpose" r= el=3D"nofollow">DataImportProperties.Transpose</a> , the format will be [ro= w][column], so:<br /> { {"A","B","C"},{"= X","Y","Z"} } would be inserted into the worksheet= as:<br class=3D"atl-forced-newline" /></p>=20 <div class=3D"table-wrap"> <div class=3D"table-wrap"> <table class=3D"confluenceTable"> <tbody>=20 <tr>=20 <td class=3D"confluenceTd"><p>A</p></td>=20 <td class=3D"confluenceTd"><p>X</p></td>=20 </tr>=20 <tr>=20 <td class=3D"confluenceTd"><p>B</p></td>=20 <td class=3D"confluenceTd"><p>Y</p></td>=20 </tr>=20 <tr>=20 <td class=3D"confluenceTd"><p>C</p></td>=20 <td class=3D"confluenceTd"><p>Z</p></td>=20 </tr>=20 </tbody> </table> </div> </div>=20 <h6 id=3D"Area.ImportData(Object(,),String(),DataImportProperties)-columnNa= mes">columnNames</h6> A string array of column names.=20 <h6 id=3D"Area.ImportData(Object(,),String(),DataImportProperties)-props">p= rops</h6> A=20 <a href=3D"/display/EW8/DataImportProperties" rel=3D"nofollow">DataImportPr= operties</a> object that contains a set of properties that will determine t= he behavior of the data import.=20 <h2 id=3D"Area.ImportData(Object(,),String(),DataImportProperties)-Returns"= >Returns</h2> An=20 <code>Area</code> object representing the set of cells populated with the i= mported values.=20 <h2 id=3D"Area.ImportData(Object(,),String(),DataImportProperties)-Examples= ">Examples</h2>=20 <div class=3D"code panel pdl" style=3D"border-width: 1px;"> <div class=3D"codeHeader panelHeader pdl" style=3D"border-bottom-width: 1px= ;"> <b>C#</b> </div> <div class=3D"codeContent panelContent pdl">=20 <pre class=3D"theme: Default; brush: csharp; gutter: false" style=3D"font-s= ize:12px;"> DataImportProperties importProps =3D wb.CreateDataImportProperties(); importProps.Transpose =3D true; Area importedArea =3D a.ImportData(dataArray, fieldNames, importProps); </pre>=20 </div> </div>=20 <div class=3D"code panel pdl" style=3D"border-width: 1px;"> <div class=3D"codeHeader panelHeader pdl" style=3D"border-bottom-width: 1px= ;"> <b>vb.net</b> </div> <div class=3D"codeContent panelContent pdl">=20 <pre class=3D"theme: Default; brush: csharp; gutter: false" style=3D"font-s= ize:12px;"> Dim importProps As DataImportProperties =3D wb.CreateDataImportProperties() importProps.Transpose =3D True Dim importedArea As Area =3D a.ImportData(dataArray, fieldNames, importProp= s) </pre>=20 </div> </div> </div> </body> </html> ------=_Part_8724_535396070.1711657939512--