LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Wine, IE6 and Adobe Acrobat (https://www.linuxquestions.org/questions/linux-software-2/wine-ie6-and-adobe-acrobat-494358/)

dhatcher2 10-21-2006 08:37 AM

Wine, IE6 and Adobe Acrobat
 
Hi all,

I am running Ubuntu 6.06 dual booted with Windows XP. I am an insurance agent by day and the site that I have to use for my livelihood is a hardcore "IE ONLY" site. Can NOT be accessed with Firefox (even with switcher agents, etc.).

I installed Wine and IE6 which gets me onto the site just fine and I can navigate around and do whatever I need to do - (claps and cheers).

But alas I digress - I can do anything EXCEPT print customer documents (proof of insurance, receipts for payments, etc). These "open in new window" in a ".asp" file format. In Windows this equates to a pop up Adobe Acrobat file that I print and hand to the client. In Linux with Wine/IE6 nothing happens at all except I get an option to "open" or "save". If I save the file and then try to open it, it just look like gibberish code. If I open it I sit and wait and wait and nothing ever happens (kinda like working in Windows 98). :cry:

Any idea where I can find a solid written procedure for integrating the Windows version of Adobe Acrobat into Wine?

b0uncer 10-21-2006 10:11 AM

Quote:

I am running Ubuntu 6.06 dual booted with Windows XP. I am an insurance agent by day and the site that I have to use for my livelihood is a hardcore "IE ONLY" site. Can NOT be accessed with Firefox (even with switcher agents, etc.).
Have you tried other browsers -- Konqueror, Opera etc? A site that only works on certain browser, especially IE, is pretty much the most stupid thing I've ever heard of :) Maybe you should ask the webmaster to do something about it..

ASP stands, if I recall right, for "active server page". No idea why Adobe opens it, or if it's something else, but what if you saved the file and opened it in Linux' Adobe Reader (or does it need the "big" Adobe Acrobat suite?)

What you want to do sounds a bit difficult, even if you could make it work with some tape-glue-cadget thing, it's irritating in the long run. I'll say this straight: don't ask to, but make the webmaster of the site understand he's a jerk and make it clear the site ought to be changed so it can be used with every platform. It shouldn't be too difficult (especially with these user-friendly software things) to make the site create the doc in a pdf or dvi format..in fact I think it's more difficult to make the doc come out in asp format than in pdf.

Internet should be something that is not restricted to platforms, operating systems or applications; instead it should just provide information in common formats that can be used anywhere. Companies working against this are working against their customers.

Is the site private or can it be accessed publicly - i.e. can somebody else than you test the site to see if it works with something else than IE?

IE is so full of holes the size of a small planet that I really wonder who would want to use it..

dhatcher2 10-21-2006 10:31 AM

Quote:

Originally Posted by b0uncer
1. but what if you saved the file and opened it in Linux' Adobe Reader (or does it need the "big" Adobe Acrobat suite?)

2. Is the site private or can it be accessed publicly - i.e. can somebody else than you test the site to see if it works with something else than IE?

3. IE is so full of holes the size of a small planet that I really wonder who would want to use it..

1. If I save the file and then open it with Adobe for Linux it is just a bunch of gibberish code.

2. The site requires a log in to enter so only a licensed and appointed agent of the company can access the site.

3. Agree 100% but I have no option in the matter. I don't know why the site is IE only but they do sign my paychecks so I have to use it... lol

jlo_sandog 10-21-2006 03:06 PM

From what I'm reading it doesn't seen that you are downloading a pdf file. But just to let you know. You can link a linux native application and ie6. For example to link kpdf with ie6 make the following registry entries
********
[HKEY_CURRENT_USER\\Software\\Classes\\.pdf]
@="AcroExch.Document"
"Content Type"="application/pdf"

[HKEY_CURRENT_USER\\Software\\Classes\\.pdf\\OpenWithList]
@="H:\\wine_read_pdf_sh.exe"

[Software\\Classes\\.pdf\\OpenWithList\\AcroRd32.exe]

[HKEY_CURRENT_USER\\Software\\Classes\\AcroExch.Document] 1161444483
@="URL:Acrobat Protocol"
"URL Protocol"=""

[HKEY_CURRENT_USER\\Software\\Classes\\AcroExch.Document\\DefaultIcon]

[HKEY_CURRENT_USER\\Software\\Classes\\AcroExch.Document\\shell\\open\\command]
@="h:\\wine_read_pdf_sh.exe \"%1\""

***********
Then I use a this very bad script. Put it in your home dir.

#!/bin/bash
#file wine_read_pdf_sh.exe
cd /home/myhome
echo "***** Input String *****"
echo $1
echo "$1">pdf-file
file=$(sed -e 's@\\@/@g' -e 's@[cC]:/windows@.ies4linux/ie6/drive_c/windows@g' -e 's@[a-zA-Z]:/@\ @g' pdf-file)
echo "$file">pdf-file
file=$(sed 's/^[ \t]*//' pdf-file)
echo "***** Output String *****"
echo $file
/usr/bin/kpdf "$file"
rm -f pdf-file

darinbolson 10-21-2006 09:06 PM

I may be totally wrong about this, but isn't there a way in firefox or konqueror that you can fool the site into thinking you are using IE? Pretty sure I saw that somewhere.

dhatcher2 10-21-2006 09:49 PM

Quote:

Originally Posted by darinbolson
I may be totally wrong about this, but isn't there a way in firefox or konqueror that you can fool the site into thinking you are using IE? Pretty sure I saw that somewhere.

User Agent Switcher works for SOME sites but not the one I have to use, it relies heavily on ActiveX controls. I have not been able to access it and actually do my work in anything but IE6 or IE7. I am making headway with IE6 and Wine except for this nasty pdf file printing/reading issue. I will try the suggestion from above though perhaps it will work.

nadavvin 11-27-2006 11:36 AM

Hello

Can I do one solution to all file types?

which one file open all the files.

In the script which open them I want that it check which linux program open it and execute the file with it.

like:
[HKEY_CURRENT_USER\\Software\\Classes\\.*\\OpenWithList]


Does It's posisible?

nadavvin 11-27-2006 12:00 PM

I try to set doc file with the word software but it isn't work.

I add these lines in system.reg:
Code:

[Software\\Classes\\.doc] 1164381333
@="Word.Document.8"
"Content Type"="application/msword"

[Software\\Classes\\.doc\\Word.Document.8\\ShellNew] 1164381333
"FileName"="winword8.doc"

[Software\\Classes\\.doc\\OpenWithList]
@="Z:\\media\\Data\\nadav\\wine\\drive_c\\Program Files\\Microsoft Office\\Office\\WINWORD.EXE"

[Software\\Classes\\Word.Document.8\\DefaultIcon]

[Software\\Classes\\Word.Document.8\\\\shell\\open\\command]
@="Z:\\media\\Data\\nadav\\wine\\drive_c\\Program Files\\Microsoft Office\\Office\\WINWORD.EXE \"%1\""

Part of them created with the installation of office.

What is the Problem?

jlo_sandog 11-28-2006 02:14 AM

hi
something doesn't look correct with this

[Software\\Classes\\.doc\\OpenWithList]
@="Z:\\media\\Data\\nadav\\wine\\drive_c\\Program Files\\Microsoft Office\\Office\\WINWORD.EXE"

[Software\\Classes\\Word.Document.8\\\\shell\\open\\command]
@="Z:\\media\\Data\\nadav\\wine\\drive_c\\Program Files\\Microsoft Office\\Office\\WINWORD.EXE \"%1\""

try

[Software\\Classes\\.doc\\OpenWithList]
@="C:\\Program Files\\Microsoft Office\\Office\\WINWORD.EXE"

[Software\\Classes\\Word.Document.8\\shell\\open\\command]
@="C\\Program Files\\Microsoft Office\\Office\\WINWORD.EXE \"%1\""

In my case, using linux openoffice. I added to the registry
REGEDIT4

[HKEY_LOCAL_MACHINE\Software\Classes\.doc]
@="Word.Document.8"
"Content Type"="application/msword"

[HKEY_LOCAL_MACHINE\Software\Classes\.doc\Word.Document.8\ShellNew]
"FileName"="winword8.doc"

[HKEY_LOCAL_MACHINE\Software\Classes\.doc\OpenWithList]
@="H:\\wine-scripts\\ie6\\wine_read_doc_sh.exe"

[HKEY_LOCAL_MACHINE\Software\Classes\Word.Document.8\shell\open\command]
@="H:\\wine-scripts\\ie6\\wine_read_doc_sh.exe \"%1\""

and since IE will send a windows path to openoffice I made a script to give it the correct path.
#!/bin/bash
cd /home/myhomefolder
echo "***** Input String *****"
echo $1
echo "$1">doc-file
file=$(sed -e 's@\\@/@g' -e 's@[cC]:/windows@.ies4linux/ie6/drive_c/windows@g' -e 's@[a-zA-Z]:/@\ @g' doc-file)
echo "$file">doc-file
file=$(sed 's/^[ \t]*//' doc-file)
echo "***** Output String *****"
echo "$file"
/usr/bin/openoffice.org-2.0 "$file"
rm -f doc-file

To test it, I launched IE6 from a terminal,and opened a .doc file from the net. It launched openoffice and opened the .doc file. The terminal output.
***** Input String *****
C:\windows\profiles\myhomefolder\Local Settings\Temporary Internet Files\Content.IE5\OHWZYRST\This%20is%20a%20test%20doc[1].doc
***** Output String *****
.ies4linux/ie6/drive_c/windows/profiles/myhomefolder/Local Settings/Temporary Internet Files/Content.IE5/OHWZYRST/This%20is%20a%20test%20doc[1].doc

Good Luck.

bobdevis 11-28-2006 03:41 AM

This is probably not what you want to hear, but if I were you, I would just get VMWare Workstation, install a virtual Windows and browse the site like that.

Not only will it be the final solution for ALL those IE-on-Windows only sites, but you will also be to stop bloating up your system with IE/Windows/Whatever compatabillity libraries and plugins.

You will never need to boot the real windows ever again unless you want to run windows-only 3D games/software. That is the last and only disadvatange of a virtual Windows.

FredGSanford 11-28-2006 03:52 AM

Have you tried using Crossover Office?

http://www.codeweavers.com/products/cxoffice/

jlo_sandog 11-28-2006 03:59 AM

There's no need for crossoffice in this case both IE6 and winword work fine under wine. The fix is a registry entry.

nadavvin 11-29-2006 09:50 AM

The problem is that I installed IE with ies4linux and it use in other directory for its drive c and office install in the wine drive c.

Both run and installed with the same wine and distro.

nadavvin 11-29-2006 01:36 PM

This is the problem:
Code:

$ ls .wine/
dosdevices  drive_c  system.reg  system.reg~  userdef.reg  user.reg
nadav@nadav-desktop:~$ ls .ies4linux/
bin  downloads  ie5  ie55  ie6  ies4linux.svg
nadav@nadav-desktop:~$ ls .ies4linux/ie6
dosdevices  drive_c  system.reg  userdef.reg  user.reg


jlo_sandog 11-29-2006 02:07 PM

Well, you have a few options.

You can install office to the .ies4linux.

You can delete/rename .wine and then move/copy .ies4linux/ie6 to .wine. Then reinstall office as you did before.

or you can leave .wine an .ies4linux as they exist, and use the method I used to open open office, with the registry entries and script, but in your case you would open the .doc files using the script with
wine "C:\Program Files\Microsoft Office\Office\WINWORD.EXE" "$file"


All times are GMT -5. The time now is 01:52 AM.