Author Topic: Wrong URL when printing to default browser  (Read 1747 times)

Offline janeri

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 5
  • BeerSmith 2 Rocks!
Wrong URL when printing to default browser
« on: August 02, 2018, 01:02:25 AM »
Direct printouts does not work with my printer, so like for V2 I use the option "Send printouts to default browser/text viewer". But when printing, the browser tries to load a URL like this http://c/Users/janer/Google%20Drive/Hobby/Beer/Enkle_Menn/BeerSmith/Reports/bsxtmp_18777.htm and returns "This site can't be reached"

If I manually pick up file:///C:/Users/janer/Google%20Drive/Hobby/Beer/Enkle_Menn/BeerSmith/Reports/bsxtmp_18777.htm in the browser, it works as expected.

This is on Window 10, using Google Chrome. Anyone else get this?
« Last Edit: August 02, 2018, 01:05:26 AM by janeri »

Offline janeri

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 5
  • BeerSmith 2 Rocks!
Re: Wrong URL when printing to default browser
« Reply #1 on: August 03, 2018, 04:20:17 AM »
The invalid URL problem was not Chrome specific, it happened to all the 5 browsers I have installed.

Offline janeri

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 5
  • BeerSmith 2 Rocks!
Re: Wrong URL when printing to default browser
« Reply #2 on: August 08, 2018, 04:57:01 AM »
Very quiet here, so I try asking the opposite question:

Has anyone tried printing using the "Send printouts to default browser/text viewer" without experiencing this invalid URL problem?

Jan

Offline GigaFemto

  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 348
  • Muonic Matter Rocks!
Re: Wrong URL when printing to default browser
« Reply #3 on: August 08, 2018, 09:41:06 AM »
It works just fine for me. If I check the box I see the report in my default browser. The URL is file://... The problem you are having is because the URL starts with http://... and your browser looks on the internet for the URL instead of on your local disk. I don't know how that happens.

--GF

Offline janeri

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 5
  • BeerSmith 2 Rocks!
Re: Wrong URL when printing to default browser
« Reply #4 on: August 09, 2018, 03:46:20 AM »
Thanks. Sounds like this is something that may be tied to my system then. I have tried uninstalling/reinstalling, but that did not help.

Jan

Offline janeri

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 5
  • BeerSmith 2 Rocks!
Re: Wrong URL when printing to default browser
« Reply #5 on: August 09, 2018, 04:23:30 AM »
I may have nailed it. I am now guessing that the problem is a space in the path to the Document Directory. I tried temporarily switching to a path without spaces, and then it seems to work as expected.

Jan
« Last Edit: August 09, 2018, 04:34:13 AM by janeri »