Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Accenture
IN
Last activity: 16 Oct 2018 12:03 EDT
How to convert a notepad to excel in openspan?
i need to convert a notepad to excel. should I write a script or is there any other method for it?
example:
custid custName
1 aaa
2 bbb
3 ccc
thanks in advance.!
***Moderator Edit: Vidyaranjan | Updated Categories***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
![](https://accounts.pega.com/sites/default/files/pega-user-image/257/REG-257204.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/257/REG-257204.png?source=PUMINIT)
Pegasystems Inc.
US
You can use the Excel connector for this: http://help.openspan.com/80/Components/Microsoft_Excel.htm
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1690600000/119675df-b33a-49a4-981a-ec366890e0cf.jpg?itok=o218R821)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1690600000/119675df-b33a-49a4-981a-ec366890e0cf.jpg?itok=o218R821)
Capgemini Technology Services India Limited
IN
Hi Aswini,
Did you get the solution?
how can we read that data from notepad and store to excel sheet in a table format.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-05/1f77a272-b558-4261-964a-0a7d028c27c5.jpg?h=436c2321&itok=Ilx-4hBN)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-05/1f77a272-b558-4261-964a-0a7d028c27c5.jpg?h=436c2321&itok=Ilx-4hBN)
Pegasystems Inc.
US
Reading out of notepad can be done by interrogating the Notepad window. You will need to read the text line by line and then split it. You can read line by line by using the .Net StringReader. Here is a simple example of reading through the text and splitting by a space.
Add your logic at the end to do something with the data acquired on each line.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1690600000/119675df-b33a-49a4-981a-ec366890e0cf.jpg?itok=o218R821)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1690600000/119675df-b33a-49a4-981a-ec366890e0cf.jpg?itok=o218R821)
Capgemini Technology Services India Limited
IN
Hi Jeff,
Thanks for the reply!!
I am not using Pega_8, In openspan unable to get the control NewStringReader, please help.
Thanks in advanced.
Anil
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Infosys
IN
Hi Anil,
I am also using openspan 7.1 and facing same scenario, have u got the solution for this, pls share if you have found out.
Thanks
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1690600000/119675df-b33a-49a4-981a-ec366890e0cf.jpg?itok=o218R821)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1690600000/119675df-b33a-49a4-981a-ec366890e0cf.jpg?itok=o218R821)
Capgemini Technology Services India Limited
IN
Hi Shang,
Yeah I got the solution, By Adding Constructor for type (looks like flower sysmbol,we can find it beside try catch icons) "System.IO.Streamreader" enter then select (String path) in Choose Method overload Pop up, After that i will add to your automation as well as in object explorer, Then You can do any operations with that.
Best Regards,
Anil Nalla
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Infosys
IN
Thanks Anil....!
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Sun Life Financial Inc
PH
Where should i put the path of my notepad that is going to be converted to excel? Thanks
![](https://accounts.pega.com/sites/default/files/pega-user-image/209/REG-209263.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/209/REG-209263.png?source=PUMINIT)
Pegasystems Inc.
IN
Hi,
Thank you for posting your query in the PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s available on the top right pane of this page. Once created, please reply back here with the URL of the new post.
You may also refer this discussion link as a reference in the new thread.