Welcome to LEAD Support Forum Login | Register | Faq  

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

How to display Annotation toolbar or toolbox in web page? using javascript?
Started by tmhai at 02-20-2006 4:14. Topic has 37 replies.

Print Search « Previous Thread Next Thread »
  02-20-2006, 4:14
tmhai is not online. Last active: 2/7/2006 2:05:05 AM tmhai

Top 500 Posts
Joined on 02-07-2006
Posts 12
How to display Annotation toolbar or toolbox in web page? using javascript?
Reply Quote

Hi all,

I'm embeding Lead Tool ActiveX control in html and use javascript to load image and draw annotation.But I don't know how to display annotation toolbar by using javascript.In example ,It guides only one annotation type: button,tex,hightlight....I would like to display annotation toolbar which contains all kind of tools  like MFC Annotations demo.

Does anyone here know how to display annotation toolbar by calling javascript? please help me.

Another questions:

-When I view leadtools image by web in different machine (not install leadtool sdk),i can't view it.

I use lpk_tool.exe to add  all lead tool ocx (Lead JPEG 2000 controls,Lead Raster ImageList_u control,Lead Raster OLE DB_U control,Lead Raster View_U control,Lead Raster_U object library ) to generate license and save it as lpk file.

Then I put it in the same folder as html file which containes embedded Active X control but i can't not view it by diffent machine too.

 

Please help me.I'm new user of leadtool.

Thanks and best regards,

 

 


   Report 
  02-23-2006, 5:04
Ali is not online. Last active: 1/24/2006 12:52:31 PM Ali



Top 25 Posts
Joined on 01-19-2006
Posts 141
Re: How to display Annotation toolbar or toolbox in web page? using javascript?
Reply Quote
1-Make sure that ltocx14.lic file located on the same folder where the
ltocx14N.ocx is located.

2- we have visual basic tutorials that show how to use and create annotation
toolbar and annotation objects. I think it will be easy to convert the VB code
to JavaScript code, please try the tutorial if you face any problem let me know
"Creating and Using Annotations (Visual Basic)"

3- If you want to load PowerPoint files, I am afraid we don't support it.


Thanks,
Ali Abo Al-Rob
LEADTOOLS Technical Support


   Report 
  02-26-2006, 22:05
tmhai is not online. Last active: 2/7/2006 2:05:05 AM tmhai

Top 500 Posts
Joined on 02-07-2006
Posts 12
Re: How to display Annotation toolbar or toolbox in web page? using javascript?
Reply Quote

[:'(]Hi Ali Abo Al-Rob,

Thank you very much for your help.

1.I copied ltocx14.lic and LTRVW14eu.OCX (I didn't find ltocx14N.ocx  as you guided because I use LEADTOOLSEVALU.exe)and pasted them into the same location with HTML file embeding ActiveX.

Then I view it in another PC by web,it only display a white page(nothing there).What happened ?

2.

In Visual Basic,

To create a toolbar it initialize :

Public RasAnnToolbar As LEADRasterAnnToolBar

Set RasAnnToolbar = New LEADRasterAnnToolBar

but in javascript how to initalize like above?

I embeded LEADRasterAnnToolBar ActiveX into HTML.I loaded this page,it displayed a warning as below:

"An ActiveX control on this page might be unsafe to interact with other parts of the page.Do you want to allow this interaction?"

 Then I clicked "yes" button of this warning, I couldn't use Annotation in this page again.

How to solve this problem? please help me.

For your reference is easy ,I enclose my HTML here.


   Report 
  02-27-2006, 3:38
tmhai is not online. Last active: 2/7/2006 2:05:05 AM tmhai

Top 500 Posts
Joined on 02-07-2006
Posts 12
Re: How to display Annotation toolbar or toolbox in web page? using javascript?
Reply Quote

Hi Ali,

I've solved Annotation toolbar. I'd like to share for others will use this tool by javascript.

 LEADRasterAnnTB.AnnParentRasterView = LEADRasterView1;
 LEADRasterAnnTB.Create(700,700,1);
 LEADRasterAnnTB.visible=true;

With LeadRasterAnnTB is  name of  Annotation  Toolbar ActiveX control embeded in tag and LEADRasterView1 is the name of LEad Raster Viewer ActiveX control.

Could you please help me to solve the 1st questions  above involving distributed ActiveX through internet?

Thanks and Regards,

Hai


   Report 
  02-28-2006, 9:49
Ali is not online. Last active: 1/24/2006 12:52:31 PM Ali



Top 25 Posts
Joined on 01-19-2006
Posts 141
Re: How to display Annotation toolbar or toolbox in web page? using javascript?
Reply Quote
What are the DLLS that you are including in the CAB file?
In addition, what's the image you are trying to load?

Thanks,
Ali Abo Al-Rob
LEADTOOLS Technical Support


   Report 
  03-01-2006, 3:55
tmhai is not online. Last active: 2/7/2006 2:05:05 AM tmhai

Top 500 Posts
Joined on 02-07-2006
Posts 12
Re: How to display Annotation toolbar or toolbox in web page? using javascript?
Reply Quote

Hi Ali,

Thank you very much for your reply soon.

I don't know how to create cab file. I only use lpktool.exe of microsoft to create license package for activex controls.

I created LTRW.lpk and put it at the same folder with HTML file.

I'd like to view all types of images :pdf,tiff,jpg,bmp.....

This is my code in html file.

   <OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"
   ALIGN="middle"
   BORDER="0"
   WIDTH="100%"
   HEIGHT="100%">
   <PARAM NAME="LPKPath" VALUE="LTRW.lpk">
  </OBJECT>
    <OBJECT ID="RasterIO1" NAME="RasterIO1"
   CLASSID="CLSID:00140C04-B1BA-11CE-ABC6-F5B2E79D9E3F"
   CODEBASE="path to CAB file/Ltrio14n.cab">
   <P>This is not supported in web browser.</P>
  </OBJECT><BR>

  <OBJECT ID="RasterAnn" NAME="RasterAnn"
   CLASSID="CLSID:00140CAB-B1BA-11CE-ABC6-F5B2E79D9E3F"
   CODEBASE="path to CAB file/Ltran14n.CAB">
   <P>This is not supported in web browser.</P>

Please help me to solve this problem.

Thanks and best regards,

Hai


   Report 
  03-02-2006, 11:40
Ali is not online. Last active: 1/24/2006 12:52:31 PM Ali



Top 25 Posts
Joined on 01-19-2006
Posts 141
Re: How to display Annotation toolbar or toolbox in web page? using javascript?
Reply Quote
Please refer to the help file and read these topics to create your Own CAB file and to included with all yours DLL and files:

1-Using Cabinet Files for Packaging ActiveX Controls

2- Step 2 Create the CAB File.

3-And, Files To Be Included With Your Application.
If the problem persists then let me know.

Thanks,
Ali Abo Al-Rob
LEADTOOLS Technical Support


   Report 
  04-12-2006, 6:13
tmhai is not online. Last active: 2/7/2006 2:05:05 AM tmhai

Top 500 Posts
Joined on 02-07-2006
Posts 12
Re: How to display Annotation toolbar or toolbox in web page? using javascript?
Reply Quote

Hi Ali,

Thank you for your help,

I create a web page(html) on server with activex control embeded into it.

From client machine I access this page, It is not loaded because lack of lead tools.The messages are be shown "This is not supported in web browser";

Although I create cab file and put the link to it as the code below:

.

 

<OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"
   ALIGN="middle"
   BORDER="0"
   WIDTH="100%"
   HEIGHT="100%">
   <PARAM NAME="LPKPath" VALUE="LTRW.lpk">
  </OBJECT>
    <OBJECT ID="RasterIO1" NAME="RasterIO1"
   CLASSID="CLSID:0014070E-B1BA-11CE-ABC6-F5B2E79D9E3FF"
   CODEBASE="controls/Ltrio14e.cab">
   <P>This is not supported in web browser.</P>
  </OBJECT><BR>

  <OBJECT ID="RasterAnn" NAME="RasterAnn"
   CLASSID="CLSID:00140723-B1BA-11CE-ABC6-F5B2E79D9E3F"
   CODEBASE="controls/Ltran14e.CAB">
   <P>This is not supported in web browser.</P>
 </OBJECT>
  <object id="LEADRasterView1" name="LEADRasterView1"
   classid="CLSID:00140708-B1BA-11CE-ABC6-F5B2E79D9E3F"
   codebase="controls/Ltrvw14e.cab"
   align="middle"
   border="0"
   width="100%"
   height="100%">
          <p>This is not supported in web browser.</p>
    </object>
  <BR>
  <object id="RasterAnnTB" name="RasterAnnTB"
   classid="CLSID:00140728-B1BA-11CE-ABC6-F5B2E79D9E3F"
   codebase="controls/Ltran14e.CAB"
   align="middle"
   border="0"
   width="100%"
   height="100%">
          <p>This is not supported in web browser.</p>
    </object>
  <BR>

 

Please help me to solve this problem as soon as possible.

If this is successful, my  manager will decide to buy leadtools.

 

Thanks and regards,

Tommy


   Report 
  04-16-2006, 6:27
Ali is not online. Last active: 1/24/2006 12:52:31 PM Ali



Top 25 Posts
Joined on 01-19-2006
Posts 141
Re: How to display Annotation toolbar or toolbox in web page? using javascript?
Reply Quote
Please send me the LPK file and the CAB along with the page link to check it on my side.

Please send it to support@LEADTOOLS.com or post it here if you prefer. If you do
that, please put it in a ZIP file first.


Thanks,
Ali Abo Al-Rob
LEADTOOLS Technical Support


   Report 
  07-30-2007, 14:20
derevell is not online. Last active: 12/28/2007 3:20:14 AM derevell

Top 50 Posts
Joined on 11-16-2006
Posts 52
Re: How to display Annotation toolbar or toolbox in web page? using javascript?
Reply Quote
Does this activex run in Firefox?


   Report 
  08-01-2007, 13:38
GregR is not online. Last active: 11/17/2008 11:10:19 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,706
Re: How to display Annotation toolbar or toolbox in web page? using javascript?
Reply Quote
No, the LEADTOOLS OCX and COM objects only work in IE.

Greg Ross
LEADTOOLS Technical Support
   Report 
  06-27-2008, 5:07
bipino7 is not online. Last active: 8/17/2008 5:43:53 AM bipino7

Top 200 Posts
Joined on 06-13-2008
Posts 15
Re: How to display Annotation toolbar or toolbox in web page? using javascript?
Reply Quote
is it possible to display annotation toolbar using leadtool activex control and javascript.
   Report 
  06-27-2008, 11:53
GregR is not online. Last active: 11/17/2008 11:10:19 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,706
Re: How to display Annotation toolbar or toolbox in web page? using javascript?

Attachment: OCX - V145 - Annotation Toolbar javascript.zip
Reply Quote
Yes, this is possible.  I've attached a very simple HTML page that implements this.

Greg Ross
LEADTOOLS Technical Support
   Report 
  06-29-2008, 2:08
bipino7 is not online. Last active: 8/17/2008 5:43:53 AM bipino7

Top 200 Posts
Joined on 06-13-2008
Posts 15
Re: How to display Annotation toolbar or toolbox in web page? using javascript?
Reply Quote
Thanks for quick reply.I displayed annotation toolbar now the question is how can i save the annotated tiff file??pls help me with code itself like annotation toolbar.
   Report 
  06-30-2008, 9:24
GregR is not online. Last active: 11/17/2008 11:10:19 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,706
Re: How to display Annotation toolbar or toolbox in web page? using javascript?
Reply Quote
Take a look at the AnnSave method in the Main ActiveX help file.  This will explain how to use the function and the possible parameters.

Greg Ross
LEADTOOLS Technical Support
   Report 
Post
 Page 1 of 3 (38 items) 1 2 3 »
LEAD Support Fo... » General » Feature Request... » How to display Annotation toolbar or toolbox in web page? using javascript?

Powered by Community Server, by Telligent Systems