Hi Akash,

The COM Object "ComTable" in an object in Word (ActiveDocument.Tables). The COM object in Axapta expects to find a table in your template. If not it throws an error <unknown>. Axapta tries to output the quatation lines in a table.
Take a look at the templete in <Axapta>\Share\Include\smm, the template is called "Quotation.dot". The template is expected to have the structure given by the template. If not you get in trouble.

/Jesper


-------- Original Message --------
Subject: Re: [development-axapta] Error when Creating Document in CRM Quotation (28-Jun-2004 15:03)
From:    [EMAIL PROTECTED]
To:      [EMAIL PROTECTED]

> Hi jesper,
> thanks for the reply.
>
> I didnt get what u mean by "the statement tries to
> fetch the first table in the template". As i know, i
> just put some bookmarks in the Word DOC template for
> the Quotationtable.
>
> can u elaborate little more....
>
> looking forward to you...
> Regards
> Akash
> --- [EMAIL PROTECTED] wrote: > Hi Akash,
> >
> > Take a look at the template in word. The statement
> > tries to fetch the first table in the template. Does
> > the template have a table (for quotation lines), and
> > is it the the first table in the template?
> >
> > // Jesper
> >
> > -------- Original Message --------
> > Subject: [development-axapta] Error when Creating
> > Document in CRM Quotation (28-Jun-2004 11:26)
> > From:    [EMAIL PROTECTED]
> > To:      [EMAIL PROTECTED]
> >
> > > hi everybody,
> > > I just running in an problem on an Ax 3.0 SP1
> > > environment -
> > > maybe some of you have similar experiences and
> > could
> > > assist:
> > >
> > >  I try to create a quotation in CRM using the
> > standard
> > >  docuhandling functionality. the document to
> > create is
> > > based
> > >  on an document type with job description "Create
> > CRM
> > >  quotation document".
> > >
> > >  When creating the document, MS-Word will be
> > started,
> > > some (bookmark-
> > >  related) field will be filled in the
> > > word-document...then an
> > >  axapta errorlog mesage occours:
> > >
> > >  Method 'Item' in COM object of class 'Tables'
> > > returned error code
> > >  0x800A1735 (<unknown>) which means: The requested
> > > member of the collection does not exist.
> > >
> > >  the error is always thrown in class
> > >  smmDocuActionCOM_Word_Quotation, method
> > >  insertQuotationLines(), line 27
> > >
> > >  COMTable = COMdocument.Tables();
> > >  COMTable = COMTable.Item(1); // <---- HERE
> > >  COMRows = COMTable.Rows();
> > >  COMRow = COMRows.Add();
> > >  COMCells = COMRow.Cells();
> > >
> > > thanks for helping in advance
> > > Regards
> > > Akash
> > >
> > >
> > >
> > >      
> > >      
> > >            
> > >
> >
> ___________________________________________________________ALL-NEW
> > Yahoo!
> > > Messenger - sooooo many all-new ways to express
> > yourself http://uk.
> > > messenger.yahoo.com
> > >
> > >
> > >
> > >
> > > 
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > > 
> > >
> > > To: [EMAIL PROTECTED]
> >
> >
> >
> >
> > ------------------------ Yahoo! Groups Sponsor
> > --------------------~-->
> > Make a clean sweep of pop-up ads. Yahoo! Companion
> > Toolbar.
> > Now with Pop-Up Blocker. Get it for free!
> >
> http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
> >
> --------------------------------------------------------------------~->
> >
> >
> > 
> > Yahoo! Groups Links
> >
> > http://groups.yahoo.com/group/development-axapta/
> >
> >      [EMAIL PROTECTED]
> >
> > 
> >
> > 
>
>
>      
>      
>            
> ___________________________________________________________ALL-NEW Yahoo!
> Messenger - sooooo many all-new ways to express yourself http://uk.
> messenger.yahoo.com
>
>
>
>

> Yahoo! Groups Links
>
>
>

>
> To: [EMAIL PROTECTED]



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to