Skip to content

Commit

Permalink
fix: GUI was only working when client was same machine as server. App…
Browse files Browse the repository at this point in the history
…ly same logic for all architectures now.
  • Loading branch information
Stephan Wald committed Jul 3, 2021
1 parent e619067 commit 707071c
Showing 1 changed file with 27 additions and 31 deletions.
58 changes: 27 additions & 31 deletions BBjDocViewer.bbj
Original file line number Diff line number Diff line change
Expand Up @@ -149,37 +149,33 @@ class public BBjDocViewer extends BBjWidget
fi
fi

if INFO(3,6)<>"5" then
#HTMLView!.setUrl("file://"+file$)
else
switch ext$
case "TXT"
case "CSV"
case "HTML"
case "HTM"
ch = unt
open (ch)file$
f$= fin(ch)
l=dec(f$(1,4))
read record (ch,siz=l)text$
close (ch)
#HTMLView!.setText(text$)
break
case "PDF"
path$=::BBUtils.bbj::BBUtils.copyFileToWebServer(file$, "deliver", clean$, 0, 1)
#HTMLView!.setUrl(path$)
break
case default
ch = unt
open (ch)file$
f$= fin(ch)
l=dec(f$(1,4))
read record (ch,siz=l)text$
close (ch)
#HTMLView!.setText(text$)
break
swend
fi
switch ext$
case "TXT"
case "CSV"
case "HTML"
case "HTM"
ch = unt
open (ch)file$
f$= fin(ch)
l=dec(f$(1,4))
read record (ch,siz=l)text$
close (ch)
#HTMLView!.setText(text$)
break
case "PDF"
path$=::BBUtils.bbj::BBUtils.copyFileToWebServer(file$, "deliver", clean$, 0, 1)
#HTMLView!.setUrl(path$)
break
case default
ch = unt
open (ch)file$
f$= fin(ch)
l=dec(f$(1,4))
read record (ch,siz=l)text$
close (ch)
#HTMLView!.setText(text$)
break
swend


methodend
Expand Down

0 comments on commit 707071c

Please sign in to comment.