Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

copy images in IE Plugin

Hi all,

i'm trying to copy the images(.bmp) from source to destination, in "Desktop" app it is working fine but when i'm using in "IE Plugin" not copying images from source to destination.

It displays below error message :

permisiondenied.JPG

Please can anyone suggest any idea how to work the below macro in IE Plugin also.

vLensInspectionImageNames = 2011_1130_223742_928.bmp,2011_1130_223742_123.bmp

vImagesLocation = D:Project\Images\Source\

vImagesDestination = D:Project\Images\Destination\

Sub CopyPasteImages

Dim sOriginFolder, sDestinationFolder, sFile, oFSO

Set oFSO = CreateObject("Scripting.FileSystemObject")

Set vLensInspectionImageNames=ActiveDocument.Variables("vLensInspectionImageNames")

Set vImageSourcePath=ActiveDocument.Variables("vImagesLocation")

Set vImageDestinationPath=ActiveDocument.Variables("vImagesDestination")

ArrFields = split(vLensInspectionImageNames.GetContent.String, ",")

For Each fIndex in ArrFields

sOriginFolder = vImageSourcePath.GetContent.string&fIndex

sDestinationFolder = vImageDestinationPath.GetContent.string&fIndex

if oFSO.fileExists(sOriginFolder) then

    oFSO.CopyFile sOriginFolder, sDestinationFolder

   ActiveDocument.Fields("LensInspectionImage").SelectAll

end if 

ActiveDocument.Fields("LensInspectionImage").SelectAll

Next

End Sub

Thanks in advance

3 Replies
Not applicable
Author

Hi,

Still looking for solution.

Thanks in advance.

Not applicable
Author

Go to Access Point Open Application and Press the Ctrl+Shift+M,And Select the Give System Access to Module Script Option.

Regards,

Venkat Reddy

Not applicable
Author

Hi,

In desktop app, i already assigned as "Allow System Access".

But also i'm getting the error in IE browser.

Thanks