Modern-UI-Components-for-VBA icon indicating copy to clipboard operation
Modern-UI-Components-for-VBA copied to clipboard

Problem to save clipboard image to local

Open XavierMirBcn opened this issue 4 years ago • 8 comments

Dear Krish,

It is great for me to have found your great software, thank you very much!
I am using Access 2013, 64 bits, Windows 10. I have download your dll_test access database and the VBA_tools.dll and bin directory for 64 bits.

Using your sample access database, when I press the option "Save clipboard image to local" it comes the error: "object variable or With block not stablished" (I have translated from Spanish)

The error happens in the line: Debug.Print gDll.DLL.Graphics.SaveClipboardToImage("", "", "")

Any idea what happens? Thanks a lot in advance

Xavier

XavierMirBcn avatar May 31 '20 17:05 XavierMirBcn

Ya revisaste que no estén bloqueados las librerías dll..?, seguro esto es lo que te sucede.. Saludos

lajjutz avatar Jun 01 '20 03:06 lajjutz

Thanks lajjutz, I checked all dll and all files are are unblocked as Krish recommended to do. But something else should be done because it is not only this option which is not working, there are other options of the sample database which are giving me the same errors. Errors always happen in code line with dDll:

For example: gDll.ChangeAccessFormColor gBootstrap.elegant_color_dark

Or: ProgressBarId = gDll.ShowProgressBar(100, "Executing your query", "Please wait. We are preparing printer driver", ThemeBg:=gBootstrap.DANGER_COLOR)

and so on. I presume something is wrong in terms of accessing gDll.

Thank you very much

XavierMirBcn avatar Jun 01 '20 09:06 XavierMirBcn

Please re-download the x64 dlls. I republished them again. @XavierMirBcn

krishKM avatar Jun 01 '20 10:06 krishKM

Dear Krish, now it works perfectly, thank you very much, wonderful !, thank you very much

XavierMirBcn avatar Jun 01 '20 20:06 XavierMirBcn

Hey Krish, first gotta spread some love, you did an amazing job with this library.

Since the latest Update the SaveClipboardToImage function is not working for me. Here is a snipped of my code. I installed the 64bit version, just like last time.

Basically what i am doing here is Taking a screenshot with snipping tool, save the image to clipboard and then save the clipboard to a file. grafik

Saphirah avatar Jun 04 '20 11:06 Saphirah

@Saphirah Are you sure? it's working for me and XavierMirBcn said after re-downloading the x64 dll + bin folder it's working fo him too.

krishKM avatar Jun 04 '20 14:06 krishKM

Hi Saphirah, it works perfectly for me and very fast. Just be sure you have downloaded the 64 bits files of VBA_TOOLS.dll and ZintNetLib.dll

XavierMirBcn avatar Jun 05 '20 07:06 XavierMirBcn

Okay i did not update the modules, that is why... Thanks guys and thank you VERY MUCH krishKM! Your Library is awesome!

Saphirah avatar Jun 06 '20 14:06 Saphirah