Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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 :
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
Hi,
Still looking for solution.
Thanks in advance.
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
Hi,
In desktop app, i already assigned as "Allow System Access".
But also i'm getting the error in IE browser.
Thanks