Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Automating File Conversion
Started by Chris at 10-30-2007 7:49. Topic has 4 replies.

Print Search « Previous Thread Next Thread »
  10-30-2007, 7:49
Chris is not online. Last active: 11/6/2007 12:30:07 PM Chris

Not Ranked
Joined on 07-23-2007
Posts 3
Automating File Conversion
Reply Quote

I am subjected to a convoluted file conversion process to post my forms in one of our applications.  I have been able to automate the first two steps: MS Word to Adobe to Photoshop.  The last step involves converting Photoshop files to compressed Lead cmp files.  I would like to automate the last step with the LeadTools v14, but am struggling to figure out where to start.  I want to set the parameters of the file conversion box (e.g. file list, file type, destination folder, etc.) and, then, convert.  I don't need to display the file conversion dialog box.

My programming skills are relatively modest.  I have accomplished the first two steps in MS Word VBA.  I can see the various LeadTool references, but which one(s) do I need and where do I found out about how they all work, in detail, preferably with examples.  I have looked throught the help files, but can't find what I need.  Either way to abbreviated or incomplete.

Thanks.

Chris


   Report 
  10-30-2007, 16:17
jigar is not online. Last active: 12/12/2008 5:08:42 PM jigar



Top 10 Posts
Joined on 08-22-2007
Posts 477
Re: Automating File Conversion
Reply Quote
Hello Chris,

Since you mention VBA, I assume you will be using VB.NET to accomplish your task. Correct?  Or will you be using the COM LEAD Object in VB6?  Both of them are simple, but if you're not familiar with VB.NET, then VB6 with COM would be better.  Also what version of Visual Studio do you have?

If you could answer these questions for me I will be able to provide you with more detailed answers.

Thanks.

LEADTOOLS Technical Support
   Report 
  10-31-2007, 8:51
Chris is not online. Last active: 11/6/2007 12:30:07 PM Chris

Not Ranked
Joined on 07-23-2007
Posts 3
Re: Automating File Conversion
Reply Quote
Jigar,

Thanks for your reply.  I am using VBA/VB6 all inside MSWord development environment.  You are correct in assuming I am trying to use the COM LEAD Object, or so I think.  There are quite a few LEAD objects to choose from.  Some are obvious, e.g. "LEAD Barcode."  Some are not.  I picked the Lead Raster File Dialog Object (14.0) as a reference.  Seemed most consistent with what I am attempting to do.

I do not have Visual Studio.  I am using Office 2002.

Chris

   Report 
  10-31-2007, 14:43
jigar is not online. Last active: 12/12/2008 5:08:42 PM jigar



Top 10 Posts
Joined on 08-22-2007
Posts 477
Re: Automating File Conversion
Reply Quote
You will have to use "LEAD Main Control (14.0)" also.  You use the File Dialog object to select the directory.  Then use the LEADRasterIO to load and save the images.  Take a look at the Main COM Object help file and search for "LEADRasterIO".  I'm not familiar with the Office 2002 VBA environment so I don't know how you will be able to get some of the parameters from the user.  To get the directory you would use ShowDirectoryDlg from the LEADRasterDlgFile object.  You can use the same method to get the directory for saving the images.  And I guess you can use a input box to get any text from the user.

Let me know if you have any more questions.

LEADTOOLS Technical Support
   Report 
  11-01-2007, 12:06
Chris is not online. Last active: 11/6/2007 12:30:07 PM Chris

Not Ranked
Joined on 07-23-2007
Posts 3
Re: Automating File Conversion
Reply Quote
Thanks.  I have a reference to "LEAD Main Control (14.0).  I will look up LEADRasterIO to understand its usage.  Hopefully, I will be able to set the paramenters I need (I am the only user so I have not need to query for file locations, etc.  I create them based upon the original Word doc location, which is local to my workstation.)

Chris

   Report 
Post
LEAD Support Fo... » Developer » Image Compressi... » Automating File Conversion

Powered by Community Server, by Telligent Systems