RE: [development-axapta] Re: ChangeCompany on business connector?

2005-08-22 Thread Matt Benic




Thanks, I am aware that will work within X++, but I was looking for ways to
change the company from C# on the business connector object.

I have settled on using a company parameter with curext (see below) as
default where possible, but using the previous suggestion (call the static
method on the app instance) where I can't do this. Using curext as default
just means I don't need to specify the company when I'm calling from axapta
and know the correct company is already selected.

//X++ : \\Classes\MyClass
void myMethod(int myParam, str 3 dataAreaID = curExt())
{
  //code
}

//C#, axapta is an IAxapta instance
axapta.CallStaticClassMethod(
  "MyClass", "myMethod",
  intParam, companyCode,
  null, null, null, null);

Regards,

Matt Benic - .Net/Axapta Analyst Developer
UTi Sun Couriers Division | Cnr Olievenhout Rd & Brakfontein Rd, Centurion,
0061
[EMAIL PROTECTED]   | O 012-6732288 | F 012-6732344


-Original Message-
From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] Behalf Of tw02e038new
Sent: 19 August 2005 05:48 PM
To: development-axapta@yahoogroups.com
Subject: [development-axapta] Re: ChangeCompany on business connector?


look for examples of changeCompany, this will work!

changeCompany(dataAreaId)
{
   // Code
}

--- In development-axapta@yahoogroups.com, "Lars Mikkelsen"
<[EMAIL PROTECTED]> wrote:
> Try appl.SetDefaultCompany
>
>
>
>   _
>
> From: development-axapta@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of Matt Benic
> Sent: Tuesday, August 16, 2005 4:33 AM
> To: Axapta Dev
> Subject: [development-axapta] ChangeCompany on business connector?
>
>
>
> Hi all,
> Is there any way to change the current company when working through the
> Axapta Business Connector, other than logging off and logging back
in? I am
> doing development that involves getting data from various companies, and
> because I will be calling a fetch mathod on a table, I would rather
not add
> a changecompany call to the method itself (though using the current
company
> as a default parameter is one rather messy option).
>
> Regards,
> 
> Matt Benic - .Net/Axapta Analyst Developer
> UTi Sun Couriers Division | Cnr Olievenhout Rd & Brakfontein Rd,
Centurion,
> 0061
> [EMAIL PROTECTED] | O 012-6732288 | F 012-6732344
>
>
>
>
>
>
>   _
>
> YAHOO! GROUPS LINKS
>
>
>
> *   Visit your group "development-axapta
>  " on the web.
>
> *   To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>


>
> *   Your use of Yahoo! Groups is subject to the Yahoo!
>   Terms of Service.
>
>
>
>   _
>
>
>
> [Non-text portions of this message have been removed]









Yahoo! Groups Links














  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "development-axapta" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [development-axapta] Sending email automatically in Axapta

2005-08-22 Thread Malcolm Burtt




Hi
 
Try using the SysMailer classes instead. These don't rely on Outlook but
send the email directly via the SMTP protocol.
 
Regards
 
Malcolm Burtt
Touchstone
"Business Solutions designed for YOUR business processes"



  _  

From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Huseyin Akdag
Sent: 19 August 2005 10:23
To: development-axapta@yahoogroups.com;
Axapta-Knowledge-Village@yahoogroups.com
Subject: [development-axapta] Sending email automatically in Axapta


Hi all,

I am trying  to create a batch job which should send  some Reports  as
PDF
file per Mail daily. The problem is, The job can generate this file ,
and
attach to Email this file but can't send the mail automatically. After
calling the   SendAttachment method , Outlook window  is opened. And I
must
click to send Button in this Window . But I want to send this mail
without a
Confirmation or manual handling. I am using SysInetMail  class. 

Is there any other way to send it automatically?





Regards..



[Non-text portions of this message have been removed]






SPONSORED LINKS 
Computer part
    Programming languages
    Microsoft axapta
    
Support exchange
    

  _  

YAHOO! GROUPS LINKS 


  
*   Visit your group "development-axapta
 " on the web.
    
*   To unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]

be> 
    
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service  . 


  _  




[Non-text portions of this message have been removed]







  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "development-axapta" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[development-axapta] Regarding Axapta Balance Score Card

2005-08-22 Thread vivek sharma




Hi Every one 
 
Does any one knows about the installations or the sites or the company where the Axapta Balance ScoreCard has been implemented . If yes please give me information regarding that cleint or may be some case study in which the balance Score Card is used..
 
I will be really greatful if some one help me out in getting that information
Regards
Vivek sharma
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]






  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "development-axapta" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[development-axapta] Setting global page margins for all reports in Axapta

2005-08-22 Thread Stefan Osterburg
Looking around a little I found a good answer myself. The Userinfo table 
contains a field named reportLeftMargin (and similar for Right, Top, 
Bottom). Setting these fields to a value (e.g. "20mm") has exactly the 
desired effect.

Now I am wondering if I am just too stupid to find the place were a user 
would have the possibility to set these fields in standard Axapta - for 
now I have added a new Tab with these fields on the SysUserinfo form myself.

Stefan Osterburg schrieb:
> Hi,
> 
> Is there an easy way to set page margins globally for all reports in Axapta?
> 
> Stefan
> 
> 
> 
> Sharing the knowledge on Axapta. 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 





 Yahoo! Groups Sponsor ~--> 
http://us.ard.yahoo.com/SIG=12hjv3r2p/M=362335.6886445.7839731.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1124712513/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!.
~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[development-axapta] FormTreeDatasource

2005-08-22 Thread Andre Klopper





Ok,

So I worked through the tutorial_Form_TreeDatasource. I get this to work but
would like to take it one step futher... I want do create the tree on the
data in a filtered datasource. How do I assign the filtered datasource to
the FormTreeDatasource?

Regards
Andre










  
  
SPONSORED LINKS
  
  
  

Computer part
  
  
Programming languages
  
  
Microsoft axapta
  
  


Support exchange
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "development-axapta" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [development-axapta] ChangeCompany on business connector?

2005-08-22 Thread Lars Mikkelsen




You should not instantiate it. You just call it.

 

If you want to see ax example off how this is used through COM, then take a
look at class WebSession method SetSite.

 

  _  

From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Benic
Sent: Friday, August 19, 2005 12:18 AM
To: development-axapta@yahoogroups.com
Subject: RE: [development-axapta] ChangeCompany on business connector?

 

Thanks, I'll try to instantiate it through the COM..

Regards,

Matt Benic - .Net/Axapta Analyst Developer
UTi Sun Couriers Division | Cnr Olievenhout Rd & Brakfontein Rd, Centurion,
0061
[EMAIL PROTECTED]   | O 012-6732288 | F 012-6732344


-Original Message-
From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] Behalf Of Lars Mikkelsen
Sent: 19 August 2005 01:13 AM
To: development-axapta@yahoogroups.com
Subject: RE: [development-axapta] ChangeCompany on business connector?


It is a global variable of class Application, so you only need to write
appl.SetDefaultCompany('xxx');



  _

From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Benic
Sent: Thursday, August 18, 2005 12:29 AM
To: development-axapta@yahoogroups.com
Subject: RE: [development-axapta] ChangeCompany on business connector?



What is appl?

Regards,

Matt Benic - .Net/Axapta Analyst Developer
UTi Sun Couriers Division | Cnr Olievenhout Rd & Brakfontein Rd, Centurion,
0061
[EMAIL PROTECTED]   | O 012-6732288 | F 012-6732344


-Original Message-
From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] Behalf Of Lars Mikkelsen
Sent: 18 August 2005 12:26 AM
To: development-axapta@yahoogroups.com
Subject: RE: [development-axapta] ChangeCompany on business connector?


Try appl.SetDefaultCompany



  _

From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Benic
Sent: Tuesday, August 16, 2005 4:33 AM
To: Axapta Dev
Subject: [development-axapta] ChangeCompany on business connector?



Hi all,
Is there any way to change the current company when working through the
Axapta Business Connector, other than logging off and logging back in? I am
doing development that involves getting data from various companies, and
because I will be calling a fetch mathod on a table, I would rather not add
a changecompany call to the method itself (though using the current company
as a default parameter is one rather messy option).

Regards,

Matt Benic - .Net/Axapta Analyst Developer
UTi Sun Couriers Division | Cnr Olievenhout Rd & Brakfontein Rd, Centurion,
0061
[EMAIL PROTECTED] | O 012-6732288 | F 012-6732344






  _

YAHOO! GROUPS LINKS



*  Visit your group "development-axapta
 " on the web.

*  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]


*  Your use of Yahoo! Groups is subject to the Yahoo!
  Terms of Service.



  _



[Non-text portions of this message have been removed]







Yahoo! Groups Links












SPONSORED LINKS


Computer
 &k=Computer+part&w1=Computer+part&w2=Progr
amming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yLpvc
LTIDJ5FTkRJGsO11w>  part

Programming
 &k=Programming+languages&w1=Computer+part&
w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.s
ig=cuhEClK4dU4wapXFmKisbQ>  languages

Microsoft
 &k=Microsoft+axapta&w1=Computer+part&w2=Pr
ogramming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yf
eG_U6QaLfPOZZIud02Fg>  axapta


Support
 &k=Support+exchange&w1=Computer+part&w2=Pr
ogramming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=hy
8yRGMzrmxdphyITTUeqA>  exchange







  _

YAHOO! GROUPS LINKS



*  Visit your group "development-axapta
 " on the web.

*  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]


*  Your use of Yahoo! Groups is subject to the Yahoo!
  Terms of Service.



  _



[Non-text portions of this message have been removed]







Yahoo! Groups Links














  _  

YAHOO! GROUPS LINKS 

 

*   Visit your group "development-axapta
 " on the web.
  
*   To 

[development-axapta] How to move sql axapta database to another server?

2005-08-22 Thread Roberto Pineda




Hello to All...

We will be moving our SQL Axapta database to a new
server. 
Is there a Best Practices list we can follow?
Any advice or suggestions.

Thanks a lot.

Roberto

__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "development-axapta" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [development-axapta] From Axapta 2.5 to 4.0

2005-08-22 Thread Tom Kim




Do you mean you just upgraded from 2.5 to 2.5 with SP4, or to version 4.0?
Thanks --Tom

Tom Kim
Microsoft Business Solutions Certified Professional
Advanced Systems Integration, Inc.
26449 Rancho Parkway South
Lake Forest, CA 92630
949-597-2170
949-597-0720 (Fax)
[EMAIL PROTECTED]
www.advancedsystemsintegration.com

-Original Message-
From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of hilda cabrejos
Sent: Friday, August 19, 2005 6:11 AM
To: development-axapta@yahoogroups.com
Subject: Re: [development-axapta] From Axapta 2.5 to 4.0



 
Hello
We just upgraded from 2.5 to 4.0, what I recommend is to make a good backup
checking that the owner is bmssa, backup of axaptaapplication 2.5 directory,
and backup of axaptaclient 2.5 directory if you have to go back (we had to),
do the upgrade in another server different from the one you have axapta 2.5
first, if everything works ok do it on the real one, the process depending
on the size of your DB (150M took about 6 hours), if you work with
SALESLINETABLE check for lines that have no unit, after the upgrade these
will appear with a unit called AX.  Do this process on a weekend.  You must
install SP4 client on every client so rename the actual AOT so there is no
chance on somebody entering with another version of SP. Can´t think of
anything else.

yuvika sharma <[EMAIL PROTECTED]> wrote:
Hi all,
can any one list the requirements and precautions needed to upgrade the code
from version 2.5 to 4.0 ???
Thanks

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]





-
YAHOO! GROUPS LINKS 


    Visit your group "development-axapta" on the web.
  
    To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
  
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]






 
Yahoo! Groups Links



 









  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "development-axapta" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[development-axapta] Join datasource with 2 fields

2005-08-22 Thread kamchung322




Hi All, 

I want to join 2 datasources with 2 fields.  Following is the code : 

QueryBuildDataSource  qb;
qb = this.query().dataSourceNo(2;
qb.addLink(FieldNum(Table1, Field1), FieldNum(Table2, Field1));
qb.addLink(FieldNum(Table1, Field2), FieldNUm(Table2, Field2));

the above code will join the datasources with Field1 AND Field2 but I
want to join it with Field1 OR Field2.  Is it possible to do it ? 

Regards.

Kenneth. 












  
  
SPONSORED LINKS
  
  
  

Computer part
  
  
Programming languages
  
  
Microsoft axapta
  
  


Support exchange
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "development-axapta" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [development-axapta] From Axapta 2.5 to 4.0

2005-08-22 Thread yuvika sharma




Hi,
I need to know about the requirements to upgrade from version 2.5 to version 4.0.For that do we need to install SP4 client on every client ?
Regards
 
 
 
 
 
 
 
 
Tom Kim <[EMAIL PROTECTED]> wrote:
Do you mean you just upgraded from 2.5 to 2.5 with SP4, or to version 4.0?
Thanks --Tom

Tom Kim
Microsoft Business Solutions Certified Professional
Advanced Systems Integration, Inc.
26449 Rancho Parkway South
Lake Forest, CA 92630
949-597-2170
949-597-0720 (Fax)
[EMAIL PROTECTED]
www.advancedsystemsintegration.com

-Original Message-
From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of hilda cabrejos
Sent: Friday, August 19, 2005 6:11 AM
To: development-axapta@yahoogroups.com
Subject: Re: [development-axapta] From Axapta 2.5 to 4.0




Hello
We just upgraded from 2.5 to 4.0, what I recommend is to make a good backup
checking that the owner is bmssa, backup of axaptaapplication 2.5 directory,
and backup of axaptaclient 2.5 directory if you have to go back (we had to),
do the upgrade in another server different from the one you have axapta 2.5
first, if everything works ok do it on the real one, the process depending
on the size of your DB (150M took about 6 hours), if you work with
SALESLINETABLE check for lines that have no unit, after the upgrade these
will appear with a unit called AX.  Do this process on a weekend.  You must
install SP4 client on every client so rename the actual AOT so there is no
chance on somebody entering with another version of SP. Can´t think of
anything else.

yuvika sharma <[EMAIL PROTECTED]> wrote:
Hi all,
can any one list the requirements and precautions needed to upgrade the code
from version 2.5 to 4.0 ???
Thanks

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]





-
YAHOO! GROUPS LINKS 


    Visit your group "development-axapta" on the web.
  
    To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]







Yahoo! Groups Links












-
YAHOO! GROUPS LINKS 


    Visit your group "development-axapta" on the web.
  
    To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
  
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-



    
-
 Start your day with Yahoo! - make it your home page 

[Non-text portions of this message have been removed]









  
  
SPONSORED LINKS
  
  
  

Computer part
  
  
Programming languages
  
  
Microsoft axapta
  
  


Support exchange
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "development-axapta" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









SV: [development-axapta] How to move sql axapta database to another server?

2005-08-22 Thread Dahlsgaard Jan




The simplest way is to backup/restore, and thats it, besides changing the configurations



Fra: development-axapta@yahoogroups.com [mailto:[EMAIL PROTECTED] På vegne af Roberto Pineda
Sendt: 22. august 2005 21:21
Til: development-axapta@yahoogroups.com
Emne: [development-axapta] How to move sql axapta database to another server?


Hello to All...

We will be moving our SQL Axapta database to a new
server. 
Is there a Best Practices list we can follow?
Any advice or suggestions.

Thanks a lot.

Roberto

__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 






YAHOO! GROUPS LINKS 


  
*   Visit your group "development-axapta  " on the web.
    
*   To unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]  
    
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service  . 







[Non-text portions of this message have been removed]









  
  
SPONSORED LINKS
  
  
  

Computer part
  
  
Programming languages
  
  
Microsoft axapta
  
  


Support exchange
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "development-axapta" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [development-axapta] How to move sql axapta database to another server?

2005-08-22 Thread mbsaxapta




hello Roberto,
you can use database tasks as usually. Axapta database is not something
special:-))
Dettach your database via Enterprise manager and simply copy your database
files on other server.Than you must attach it on this new one.
Or create backup file, and restore it into database on your new server.

tomas

-Original Message-
From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] Behalf Of Roberto Pineda
Sent: Monday, August 22, 2005 9:21 PM
To: development-axapta@yahoogroups.com
Subject: [development-axapta] How to move sql axapta database to another
server?


Hello to All...

We will be moving our SQL Axapta database to a new
server.
Is there a Best Practices list we can follow?
Any advice or suggestions.

Thanks a lot.

Roberto

__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/






Yahoo! Groups Links







__ Informace od NOD32 1.1199 (20050822) __

Tato zprava byla proverena antivirovym systemem NOD32.
http://www.nod32.cz











  
  
SPONSORED LINKS
  
  
  

Computer part
  
  
Programming languages
  
  
Microsoft axapta
  
  


Support exchange
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "development-axapta" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[development-axapta] Report Emailing using Outlook

2005-08-22 Thread claudesgr8




Hi,

I'm hoping someone can help me. As a result of the Rich Text format 
issue with non-microsoft mail servers (ie. creating winmail.dat 
attachments). We have decided to use Outlook thru COM while emailing 
reports. The mail formats are all as we expect, however it is not 
handling the attachment correctly.

First you get the message:
This item contains attachments that are potentially unsafe. . . send 
anyway ?

Click Yes. It creates the mail with the message - Outlook has 
blocked access to the following potentially unsafe attachments: 
AxaptaReport.TXT.

Here is the code I have place in the Info Class:

void reportSendMail(PrintJobSettings p1)
{
    SysINetMail m = new SysINetMail();

    //
    COM outlook;
    COM outlookMailItem;
    COM outlookAttachments;
    //

    // Syp Modifications - SP2 - BEGIN
    // Request Num: GB-453-937-TCC7
    str fileName = "AxaptaReport";
    ;

    if (p1.format() == PrintFormat::ASCII)
    //fileName = subStr(p1.fileName(),strLen(p1.fileName())-3,-
999)+'TXT';
    fileName = fileName + '.TXT';
    else if (p1.format() == PrintFormat::RTF)
    //fileName = subStr(p1.fileName(),strLen(p1.fileName())-3,-
999)+'RTF';
    fileName = fileName + '.RTF';
    else if (p1.format() == PrintFormat::HTML)
    //fileName = subStr(p1.fileName(),strLen(p1.fileName())-3,-
999)+'HTM';
    fileName = fileName + '.HTM';
    else if (p1.format() == PrintFormat::PDF)
    //fileName = subStr(p1.fileName(),strLen(p1.fileName())-3,-
999)+'PDF';
    fileName = fileName + '.PDF';

    //
    //m.sendMailAttach(p1.mailTo(),p1.mailCc(), p1.mailSubject
(),'Axapta report', FALSE, p1.fileName(), fileName);
    //
//    m.sendMailAttach('','', '','Axapta report', TRUE, p1.fileName
(), fileName);

    // Syp Modifications - SP2 - END

    //
    outlook = new COM('Outlook.Application');
    if (outlook)
    {
    outlookMailItem = outlook.createItem(0);
    if (outlookMailItem)
    {
    outlookAttachments = outlookMailItem.Attachments();
    if (outlookAttachments)
    {
    outlookMailItem.to(p1.mailTo());
    outlookMailItem.subject(p1.mailSubject());
    outlookMailItem.body('Axapta report');
    outlookAttachments.Add(p1.fileName(), 1, 1, 
fileName);
    outlookMailItem.send();
    }

    }
    }
    //
}

Any help will be appreciated.

Thanks,
Claude











  
  
SPONSORED LINKS
  
  
  

Computer part
  
  
Programming languages
  
  
Microsoft axapta
  
  


Support exchange
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "development-axapta" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.