Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python code help
#1
1.Search for that name in the word document where the “process” and when found, check if that has an associated table with it.
2. Pick that table and append it in a new spreadsheet giving it the same name as the two documents.
3. Continue with the same process till all the images are covered from the HTML document (HTML document is attached) and discovered in the Word Document (Word document is attached) and moved into the spreadsheet (Sample spreadsheet is attached).
4. The spreadsheet should have the first column as the name of the block under t-code.

Please provide python code logic
Reply
#2
welcome to the forum. We are glad to help, but we are not going to do your work. Provide your code in python tags, full tracebacj if you get any - in error tags, ask specific questions.
That said, a lot of essential info is missing from your questions. You may want to provide that info (along with your code, traceback, etc.) in order for process of helping you to go smoothly.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
Please provide Required logic for below requirement in python
search the word document of string “process” check if that has an associated table with it and
Pick that table and append it in a new spreadsheet in excel sheet giving it the same name
Reply
#4
No, it doesn't work like this... No matter how many times you would repeat it...
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#5
The logic would be:
1. Open the file
2. Read file contents into memory
3. Search the file contents for the tag that denotes a table
4. If found, create an Excel spreadsheet
4a. Then copy the table to the excel document and remember to close it
5. If not found, display message and quit.

That's the code logic. The code is quite something else, but this can be used as a guide to get you started. Post your progress
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020