...now I have to do a W1040 for 2017. How can I get the free form 1040 to print and mail?
You can't at this point, at least not from TurboTax. If you want to use TurboTax for your 2017 Form 1040, then you will have to use an installed (CD/Download) product.
What is a W1040?
Here are some blank forms & instructions for 2017
2017 Tax Tables https://www.irs.gov/pub/irs-prior/i1040tt--2017.pdf
Publication 17 Tax Guide for 2017 https://www.irs.gov/pub/irs-prior/p17--2017.pdf