<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – HTML</title>
    <link>https://docs.aspose.com/cells/python-java/html/</link>
    <description>Recent content in HTML on Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
	  <atom:link href="https://docs.aspose.com/cells/python-java/html/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Pythonjava: Convert Excel to HTML with headings</title>
      <link>https://docs.aspose.com/cells/python-java/convert-excel-to-html-with-headings/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/python-java/convert-excel-to-html-with-headings/</guid>
      <description>
        
        
        &lt;h2 id=&#34;convert-excel-to-html-with-headings&#34;&gt;&lt;strong&gt;Convert Excel to HTML with headings&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Aspose.Cells provides the option to export row and column headings while converting Excel to HTML. This can be achieved by using &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/htmlsaveoptions#ExportHeadings&#34;&gt;HtmlSaveOptions.ExportHeadings&lt;/a&gt; property provided by the API. The default value of &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/htmlsaveoptions#ExportHeadings&#34;&gt;HtmlSaveOptions.ExportHeadings&lt;/a&gt; is &lt;strong&gt;False&lt;/strong&gt;. Pass &lt;strong&gt;True&lt;/strong&gt; as a parameter to render headings in the output HTML file. The following image shows the output file generated by the following code.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;PrintHeadings.jpg&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;p&gt;The following sample code demonstrates using the &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/htmlsaveoptions#ExportHeadings&#34;&gt;HtmlSaveOptions.ExportHeadings&lt;/a&gt; property to render headings in the output HTML file.&lt;/p&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h2&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/32e50c6aabc547111966569f3fd39694.js?file=HTML-GetHTML5StringFromCell.py&#34;&gt;&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Pythonjava: Disable Downlevel Revealed Comments while saving to HTML</title>
      <link>https://docs.aspose.com/cells/python-java/disable-downlevel-revealed-comments-while-saving-to/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/python-java/disable-downlevel-revealed-comments-while-saving-to/</guid>
      <description>
        
        
        &lt;h2 id=&#34;disable-downlevel-revealed-comments-while-saving-to-html&#34;&gt;&lt;strong&gt;Disable Downlevel Revealed Comments while saving to HTML&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;When an Excel file is converted to HTML, Aspose.Cells adds Downlevel-revealed conditional comments to the output HTML file. These conditional comments are mostly relevant to old versions of Internet Explorer and are irrelevant in modern browsers. For additional information on Downlevel-revealed conditional comments, please visit the following link:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://en.wikipedia.org/wiki/Conditional_comment#Downlevel-revealed_conditional_comment&#34;&gt;Conditional comment - Downlevel-revealed conditional comment&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To remove Downlevel-revealed conditional comments, Aspose.Cells provides the &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/htmlsaveoptions#DisableDownlevelRevealedComments&#34;&gt;HtmlSaveOptions.DisableDownlevelRevealedComments&lt;/a&gt; property. Setting the &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/htmlsaveoptions#DisableDownlevelRevealedComments&#34;&gt;HtmlSaveOptions.DisableDownlevelRevealedComments&lt;/a&gt; property to &lt;strong&gt;True&lt;/strong&gt; will remove the Downlevel-revealed conditional comments from the output HTML file.&lt;/p&gt;
&lt;p&gt;The following image shows the Downlevel-revealed conditional comments that will be removed from the output HTML file:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;Disable-Downlevel-Revealed-Comments.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h2&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/32e50c6aabc547111966569f3fd39694.js?file=HTML-DisableDownlevelRevealedCommentsWhileSavingToHTML.py&#34;&gt;&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Pythonjava: Exclude Unused Styles during Excel to HTML conversion</title>
      <link>https://docs.aspose.com/cells/python-java/exclude-unused-styles-during-excel-to-html-conversion/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/python-java/exclude-unused-styles-during-excel-to-html-conversion/</guid>
      <description>
        
        
        &lt;h2 id=&#34;exclude-unused-styles-during-excel-to-html-conversion&#34;&gt;&lt;strong&gt;Exclude Unused Styles during Excel to HTML conversion&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Microsoft Excel files may contain many unused styles. When these files are exported to HTML format, the unused styles are also exported. This results in an increased size of the output HTML. Aspose.Cells for Python via Java supports excluding these styles during the conversion of an Excel file to HTML. For this, the API provides the &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/htmlsaveoptions#ExcludeUnusedStyles&#34;&gt;HtmlSaveOptions.ExcludeUnusedStyles&lt;/a&gt; property. Setting the value of &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/htmlsaveoptions#ExcludeUnusedStyles&#34;&gt;HtmlSaveOptions.ExcludeUnusedStyles&lt;/a&gt; property to &lt;strong&gt;True&lt;/strong&gt; will exclude all unused styles from the output HTML.&lt;/p&gt;
&lt;p&gt;The following screenshot shows unused styles in the HTML file, which will be removed by setting the value of &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/htmlsaveoptions#ExcludeUnusedStyles&#34;&gt;HtmlSaveOptions.ExcludeUnusedStyles&lt;/a&gt; property to &lt;strong&gt;True&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;HtmlSaveOptions-Exclude-Unused-Styles.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;p&gt;The following sample code demonstrates removing unused styles during Excel to HTML conversion.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/32e50c6aabc547111966569f3fd39694.js?file=HTML-ExcludeUnusedStylesInExcelToHTML.py&#34;&gt;&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Pythonjava: Get HTML5 string from Cell</title>
      <link>https://docs.aspose.com/cells/python-java/get-html5-string-from-cell/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/python-java/get-html5-string-from-cell/</guid>
      <description>
        
        
        &lt;h2 id=&#34;get-html5-string-from-cell&#34;&gt;&lt;strong&gt;Get HTML5 string from Cell&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Using Aspose.Cells for Python via Java, you can get the HTML string from the cell. This can be achieved by using the &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/cell#getHtmlString(boolean)&#34;&gt;getHtmlString(boolean html5)&lt;/a&gt; method provided by the API. If you pass &lt;strong&gt;false&lt;/strong&gt; as a parameter, it will return normal HTML, but if you pass &lt;strong&gt;true&lt;/strong&gt;, it will return an HTML5 string.&lt;/p&gt;
&lt;p&gt;The following sample code creates a workbook object and adds some text in cell A1 of the first worksheet. It then gets the Normal HTML and HTML5 string from cell A1 using the &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/cell#getHtmlString(boolean)&#34;&gt;getHtmlString(boolean html5)&lt;/a&gt; method and prints them.&lt;/p&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h2&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/32e50c6aabc547111966569f3fd39694.js?file=HTML-GetHTML5StringFromCell.py&#34;&gt;&lt;/script&gt;

&lt;p&gt;The following is the output generated by the above-provided code snippet.&lt;/p&gt;
&lt;h2 id=&#34;output&#34;&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-java&#34; data-lang=&#34;java&#34;&gt; &lt;span class=&#34;n&#34;&gt;Normal&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt;

&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Font&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Style&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;FONT-FAMILY: Arial;FONT-SIZE: 10pt;COLOR: #000000;&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;This&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;is&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;some&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;text&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&amp;lt;/&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Font&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nl&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;HTML5:&lt;/span&gt;

&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;div&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Style&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;FONT-FAMILY: Arial;FONT-SIZE: 10pt;COLOR: #000000;&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;This&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;is&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;some&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;text&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&amp;lt;/&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;div&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

      </description>
    </item>
    
    <item>
      <title>Pythonjava: Recognize self-closing tags</title>
      <link>https://docs.aspose.com/cells/python-java/recognize-self-closing-tags/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/python-java/recognize-self-closing-tags/</guid>
      <description>
        
        
        &lt;p&gt;HTML can have a variety of tag formats for empty tags, such as &lt;code&gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;td/&amp;gt;&lt;/code&gt;. Aspose.Cells supports both of these formats. This feature can be tested by converting the attached sample HTML file to an Excel file. The sample HTML file and output file can be downloaded from the following links for testing.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;sampleSelfClosingTags.zip&#34;&gt;Source File&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;106365184.xlsx&#34;&gt;Output File&lt;/a&gt;&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/32e50c6aabc547111966569f3fd39694.js?file=HTML-RecognizeSelfClosingTags.py&#34;&gt;&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Pythonjava: Export Comments while Saving Excel file to HTML</title>
      <link>https://docs.aspose.com/cells/python-java/export-comments-while-saving-excel-file-to/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/python-java/export-comments-while-saving-excel-file-to/</guid>
      <description>
        
        
        &lt;h2 id=&#34;export-comments-while-saving-excel-file-to-html&#34;&gt;&lt;strong&gt;Export Comments while Saving Excel file to HTML&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;When Excel is converted to HTML, comments are not exported. Aspose.Cells for Python via Java provides a feature to export comments when converting Excel to HTML. To achieve this, the API provides the &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/htmlsaveoptions#IsExportComments&#34;&gt;HtmlSaveOptions.IsExportComments&lt;/a&gt; property. Setting the value of &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/htmlsaveoptions#IsExportComments&#34;&gt;HtmlSaveOptions.IsExportComments&lt;/a&gt; property to &lt;strong&gt;True&lt;/strong&gt; will export comments in the output HTML.&lt;/p&gt;
&lt;p&gt;The following screenshot shows the output HTML file generated by the sample code snippet.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;Export-Comments-while-Saving-Excel-file-to-Html.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;p&gt;The following sample code demonstrates exporting comments during Excel to HTML conversion.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/32e50c6aabc547111966569f3fd39694.js?file=HTML-ExportCommentsWhileSavingExcelFileToHtml.py&#34;&gt;&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Pythonjava: Export print area range to HTML</title>
      <link>https://docs.aspose.com/cells/python-java/export-print-area-range-to/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/python-java/export-print-area-range-to/</guid>
      <description>
        
        
        &lt;h2 id=&#34;export-print-area-range-to-html&#34;&gt;&lt;strong&gt;Export print area range to HTML&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Aspose.Cells for Python via Java supports exporting only the print area, i.e., a selected range of cells, instead of the entire sheet to HTML. For this, the API provides the &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/htmlsaveoptions#ExportPrintAreaOnly&#34;&gt;HtmlSaveOptions.ExportPrintAreaOnly&lt;/a&gt; property. Setting this property to &lt;strong&gt;True&lt;/strong&gt; will only export the print area.&lt;/p&gt;
&lt;p&gt;The following sample code demonstrates the use of the &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/htmlsaveoptions#ExportPrintAreaOnly&#34;&gt;HtmlSaveOptions.ExportPrintAreaOnly&lt;/a&gt; property to export only the print area to HTML.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/32e50c6aabc547111966569f3fd39694.js?file=HTML-ExportPrintAreaToHtml.py&#34;&gt;&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Pythonjava: Excel with unsupported border style to HTML</title>
      <link>https://docs.aspose.com/cells/python-java/excel-with-unsupported-border-style-to/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/python-java/excel-with-unsupported-border-style-to/</guid>
      <description>
        
        
        &lt;h2 id=&#34;excel-with-unsupported-border-style-to-html&#34;&gt;&lt;strong&gt;Excel with unsupported border style to HTML&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Microsoft Excel supports some types of dashed borders that are not supported by web browsers. When such files are converted to HTML using Aspose.Cells, those borders are removed. However, Aspose.Cells for Python via Java supports displaying similar borders with the &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/htmlsaveoptions#ExportSimilarBorderStyle&#34;&gt;HtmlSaveOptions.ExportSimilarBorderStyle&lt;/a&gt; property. You may set the value of the &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/htmlsaveoptions#ExportSimilarBorderStyle&#34;&gt;HtmlSaveOptions.ExportSimilarBorderStyle&lt;/a&gt; property to &lt;strong&gt;True&lt;/strong&gt; to export unsupported borders.&lt;/p&gt;
&lt;p&gt;The following sample code loads the &lt;a href=&#34;sampleExportSimilarBorderStyle.xlsx&#34;&gt;sample Excel file&lt;/a&gt; that contains some unsupported borders as shown in the following screenshot. The screenshot further illustrates the effect of the &lt;a href=&#34;https://reference.aspose.com/cells/python/asposecells.api/htmlsaveoptions#ExportSimilarBorderStyle&#34;&gt;HtmlSaveOptions.ExportSimilarBorderStyle&lt;/a&gt; property in the output HTML (&lt;a href=&#34;outputExportSimilarBorderStyle.zip&#34;&gt;outputExportSimilarBorderStyle.zip&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;Export-Similar-Border-Style.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/32e50c6aabc547111966569f3fd39694.js?file=HTML-ExportSimilarBorderStyle.py&#34;&gt;&lt;/script&gt;


      </description>
    </item>
    
  </channel>
</rss>
