We're getting off the MSC Poesia in Copenhagen and flying into Paris for a day or two then TGV to Barcelona for a couple of days. We were in Barcelona in October and stayed at the Hotel Jazz, a 5-minute walk to Las Ramblas. This time will stay closer to Sagrada Familia but haven't looked into hotels yet.
As far as getting to the port, take a taxi, reasonable priced.