OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Thread Tools Search this Thread Display Modes
Old 19-01-2011, 09:11
Posts: n/a
Default Alex, Please Help with Import png problems

i need to import a list of png files, normally 11X17 inchs at 350 to 400 dpi.
normally # of files go from 10 to 16 files.
i have a array with files names and then run a loop to open one by one and put it on x and y coordinates on active document.
to do import i declared:
fileaddress and file name is the name and root of file
posx and posy is the location where new shapes will be located
Dim impflt As ImportFilter
Dim impopt As New StructImportOptions

' 16 files will be opened
for cont=1 to 16
impopt.Mode = cdrImportFull
Set impflt =ActiveLayer.ImportEx("FileSddress"&filename,cdrAutoSense,impopt)
Set shtemp = ActiveShape
'do something with shtemp
'delete original from disk i don't need it anymore
Kill "FileSddress" & filename
shtemp.SetPosition posX, posY
next cont

This loop work great with small files ( 10 X 10 inchs at 180 dpi) per example, but when i run it with big files it stop with import failure message.
i try to change AutoSense to cdrPNG and still same problem.
new shape is not created and when i go to the root folder where png file is located it disappear.
looks like Corel try to open and delete the file.
i try to see if the line Kill was the problem but if i do a REM to this line i still have same problem.
somebody know how to solve.
Maybe is a Corel Memory leak?
Maybe Alex have another way to deal with big files.
Please Help.
Plese forguive my poor english.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alex Sir: Help again & again : Thanks amollondhe CorelDRAW/Corel DESIGNER VBA 5 27-03-2006 09:11
Alex, How do you do it? ddonnahoe CorelDRAW/Corel DESIGNER VBA 1 20-11-2004 01:25
Alex - on behalf of myself and many others a BIG THANKS !! D_Green CorelDRAW/Corel DESIGNER VBA 3 14-09-2004 13:38
alex! lees CorelDRAW/Corel DESIGNER VBA 3 21-05-2004 09:42
YES ALEX ,YOU ARE RIGHT! lees CorelDRAW/Corel DESIGNER VBA 3 14-05-2004 10:39

All times are GMT -5. The time now is 05:58.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com