Hi, Steve,

You may set your preferred file format when print the
report to a file. The function name is
preferredFileFormat in printJobSettings class. Here is
the sample code in init method of a report:

public void init()
{
    super();
   
element.printJobSettings().preferredFileFormat(PrintFormat::PDF);
}

Hope this help.

--- slees32 <[EMAIL PROTECTED]> wrote:

> Our users when emailing a document from Axapta
> almost always choose 
> PDF.
> However the standard default is ASCII meaning they
> always have to 
> click on the combo box and select PDF from the
> bottom of the list.
> 
> The default seems to be controlled by the element
> ASCII of the base 
> enum SysPrintFileType, which is set to enumvalue 0.
> 
> Tried swapping this enumvalue with the element PDF
> which does make it 
> the default, however it stil produces an ASCII file.
> 
> Any help would be much appreciated.
> I presume this is a simple change but I am just not
> competent enough 
> to work it out.
> 
> Thanks,
> 
> 
> Steve
> 
> 
> 


Best regards,


Sonny Wibawa Adi
MBS Certified Professional - Axapta 3.0 Technical
MCSD.NET
MCAD.NET


                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Put more honey in your pocket. (money matters made easy).
http://us.click.yahoo.com/r7D80C/dlQLAA/cosFAA/kGEolB/TM
--------------------------------------------------------------------~-> 

Sharing the knowledge on Axapta. 
Yahoo! Groups Links

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

<*> 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/
 


Reply via email to