Python Forum

Full Version: python code help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
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
No, it doesn't work like this... No matter how many times you would repeat it...
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