AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.04.2008, 19:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
gatesasbait: Automatic creation of a PDF from a customer invoice in Dynamics Ax 4.0
Источник: http://gatesasbait.spaces.live.com/B...B9F5!223.entry
==============


Good morning,

The following code snippet will create a PDF from a CustInvoiceJour record, without any user intervention, using only the standard Ax4 EPSendDocument class.

X++:
public static void EPSendDocumentTest(Args _args)
{
    EPSendDocument sendDocument;
    CustInvoiceJour custInvoiceJour;
    Filename filename;
    ;
 
    select firstonly custInvoiceJour;
 
    filename = WinAPI::getTempPath() +'MyInvoice.pdf';

    sendDocument = new EPSendDocument(custInvoiceJour);
    sendDocument.parmOriginal(true);
    sendDocument.parmFileName(filename);
    // Make document will run the report and send it to a PDF file with
    // the path specified in filename
    sendDocument.makeDocument();
}
The file should end up in C:\DOCUME~1\***\LOCALS~1\Temp\MyInvoice.pdf on Win32 installations. I found this while looking at EP weblet 'EPDocuGetWeblet'. The EPSendDocument class supports a lot of other standard reports, such as quotations, etc.


Источник: http://gatesasbait.spaces.live.com/B...B9F5!223.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Dynamics AX: Microsoft's strategy and vision for Dynamics AX and SOA Blog bot DAX Blogs 0 05.03.2009 18:05
gatesasbait: Report 'shape' control issues with PDF Printer class in Dynamics AX 4.0 Blog bot DAX Blogs 0 09.09.2008 07:07
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05
Inside Dynamics AX 4.0: Usage Scenarios Blog bot DAX Blogs 0 04.10.2007 05:15
Dynamics AX: Dynamics AX project success - Customer Ownership & Expectations Blog bot DAX Blogs 0 07.08.2007 21:10

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 03:50.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.