> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Script Tip Friday - Displaying txt, PDF or browser contents in your worksheet

Our Script Tip this week comes from our Senior Application Engineer here at Ansys, Vishnu Venkataraman. Have you ever wondered the best way to display text, PDF or browser contents in your worksheet? Well thank goodness we have Vishnu here to help!

"Some examples you may want to display in your worksheet:

PDF Content:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/resources/articles/images/picDT1.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=b13aba0205f1d87a4f899053ac12bb39)

Text File:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/resources/articles/images/picDT2.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=26e6499481a0e19544ebd62c608c1cde)

Web Content:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/resources/articles/images/picDT3.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=551f970f610006d89df5c16d326c22c4)

Worksheet uses HTML templates to display contents in worksheet. HTML templates to display are stored in below path for version 22.1:

```shell theme={null}
C:\Program Files\ANSYS Inc\v221\aisol\DesignSpace\DSPages\html
```

Hence, you can use the below code to display web, txt or pdf contents:

```python theme={null}
import toolbar
toolbar.ToggleWorksheetVisibility(ExtAPI)
WorksheetPane = ExtAPI.UserInterface.GetPane(MechanicalPanelEnum.Worksheet)
WorksheetPane.Caption = "my content"
WorksheetPane.CloseButtonVisible = True
control = WorksheetPane.ControlUnknown
control.Navigate(r"Your\path\to\text\file\mytext.txt") #for Text content
#control.Navigate(r"Your\path\to\pdf\file\mypdf.pdf")#for PDF content
#control.Navigate("www.google.com")#for web content
```
