Floating preview and PDFs

Things you’d like to miss in the future...
glusberg
Posts: 115
Joined: 04 Dec 2010 17:47

Re: Floating preview and PDFs

Post by glusberg »

Thank you.

raphaelmsx
Posts: 27
Joined: 10 Oct 2021 20:55

Re: Floating preview and PDFs

Post by raphaelmsx »

Hi people, I'm having problems with floating preview and PDFs too, and found this topic.

In my work computer, I have Win11, latest XYplorer free edition and Foxit reader, and floating preview works just fine.

In my home computer, Win10, XYplorer 24.20.0500 and also foxit, but the floating preview doesn't work at all.

What can I do to fix this?

Here's the screenshot and error log:
error01.PNG
error01.PNG (46.88 KiB) Viewed 479 times

Code: Select all

************** Exception Text **************
System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at Preview64.Form1.handlePreview(String[] arguments)
   at Preview64.Form1.Form1_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at Preview64.Form1.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4614.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
XY64
    Assembly Version: 1.0.8451.19745
    Win32 Version: 1.0.0.30
    CodeBase: file:///C:/Program%20Files%20(x86)/XYplorer/XY64.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4550.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4605.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4605.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Floating preview and PDFs

Post by admin »

Replace E:\Test\Preview\Katakana.pdf by the path to your PDF and run each of these lines one by one through the XYplorer address bar (paste them into the address bar and press ENTER):

Code: Select all

preview "E:\Test\Preview\Katakana.pdf";       //normal preview
preview "E:\Test\Preview\Katakana.pdf", p;    //PreviewHandler (bitness depends)
preview "E:\Test\Preview\Katakana.pdf", p32;  //PreviewHandler (32-bit)
preview "E:\Test\Preview\Katakana.pdf", p64;  //PreviewHandler (64-bit)
preview "E:\Test\Preview\Katakana.pdf", t;    //ThumbnailProvider (bitness depends)
preview "E:\Test\Preview\Katakana.pdf", tf32; //ThumbnailProvider IShellItemImageFactory (32-bit)
preview "E:\Test\Preview\Katakana.pdf", tf64; //ThumbnailProvider IShellItemImageFactory (64-bit)
preview "E:\Test\Preview\Katakana.pdf", te32; //ThumbnailProvider IExtractImage (32-bit)
Does any of them work without error?

raphaelmsx
Posts: 27
Joined: 10 Oct 2021 20:55

Re: Floating preview and PDFs

Post by raphaelmsx »

Hi.

None of them worked, giving the same error output.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Floating preview and PDFs

Post by admin »

All of them gave that error? That's not possible. :eh:

And could you click on the Details button in the error message and post the details in text form?

raphaelmsx
Posts: 27
Joined: 10 Oct 2021 20:55

Re: Floating preview and PDFs

Post by raphaelmsx »

Sorry, I should've clarified myself before.

Neither didn't work.

All of them opened the right preview pane with nothing on it.

Those three below:
preview "h:\test.pdf";
preview "h:\test.pdf", p;
preview "h:\test.pdf", p64;


gave the exact same error described below, and also opened this window on the top left corner after I close the error window: (the same way when pressing F11, I forgot to put this screenshot together with the others in my first post)
error.png
error.png (4.63 KiB) Viewed 446 times

Code: Select all

************** Exception Text **************
System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at Preview64.Form1.handlePreview(String[] arguments)
   at Preview64.Form1.Form1_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at Preview64.Form1.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4614.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
XY64
    Assembly Version: 1.0.8451.19745
    Win32 Version: 1.0.0.30
    CodeBase: file:///C:/Program%20Files%20(x86)/XYplorer/XY64.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4550.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4605.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4605.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

And those below:
preview "h:\test.pdf", p32;
preview "h:\test.pdf", t;
preview "h:\test.pdf", tf32;
preview "h:\test.pdf", tf64;
preview "h:\test.pdf", te32;


did not output the error window, but in the blank preview pane it additionaly showed the text: "Preview failed".

I hope I have described everything now, if something it's still not clear please tell me.

Thanks again.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Floating preview and PDFs

Post by admin »

Weird.

You might need to specify a GUID to make it work with Foxit. Here at the bottom are 2 GUIDs for Foxit preview handlers:
https://www.xyplorer.com/faq-topic.php?id=PDFpreview

Try them with Configuration | Preview | Previewed Formats | Category: User-Defined Preview Handlers.

raphaelmsx
Posts: 27
Joined: 10 Oct 2021 20:55

Re: Floating preview and PDFs

Post by raphaelmsx »

I tried:

Setting the two GUIDs for foxit (not at the same time).

Installing and setting the GUID for Sumatra (both 32/64 bit).

Installing and setting the GUID for pdf-xchange viewer (only 64-bit, it won't allow me to install 32-bit on my 64-bit Win10).

I didn't do all of this at the same time, after intalling the next app, I've uninstalled the previous.

Nothing worked, the same error is given.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Floating preview and PDFs

Post by admin »

:veryconfused:

Try this script to find out the .NET version:

Code: Select all

echo get("os");

raphaelmsx
Posts: 27
Joined: 10 Oct 2021 20:55

Re: Floating preview and PDFs

Post by raphaelmsx »

version.png
version.png (7.13 KiB) Viewed 434 times

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Floating preview and PDFs

Post by admin »

Well, also here I'm out of ideas. Your system is strange. :mrgreen:

raphaelmsx
Posts: 27
Joined: 10 Oct 2021 20:55

Re: Floating preview and PDFs

Post by raphaelmsx »

admin wrote: 26 Mar 2023 18:53 Well, also here I'm out of ideas. Your system is strange. :mrgreen:
Thanks?!!! :mrgreen: :mrgreen: :mrgreen:

Let's wait for someone else or other idea from you...

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Floating preview and PDFs

Post by admin »

raphaelmsx wrote: 26 Mar 2023 18:47 version.png
BTW, why is the first line wrapped? :? Can you show a shot of the complete box, and what is your screen resolution, 150%

raphaelmsx
Posts: 27
Joined: 10 Oct 2021 20:55

Re: Floating preview and PDFs

Post by raphaelmsx »

admin wrote: 26 Mar 2023 19:07
raphaelmsx wrote: 26 Mar 2023 18:47 version.png
BTW, why is the first line wrapped? :? Can you show a shot of the complete box, and what is your screen resolution, 150%
Yes, it's 1600x1200 at 135%, otherwise I can't read any text :titter:
version.png
version.png (13.9 KiB) Viewed 417 times

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Floating preview and PDFs

Post by admin »

Thanks! Something is wrong there, shouldn't wrap, gotta investigate...

Post Reply