0% found this document useful (0 votes)
166 views

Open PDF in Browser - Microsoft Dynamics AX

This document summarizes a discussion on the Microsoft Dynamics AX Forum about opening PDF files in a browser from X++ code. One user asked if there is a way to open a PDF file in a browser from X++. Another user suggested checking a specific blog post for how to do this in AX 2012. However, the original user responded that they do not want to change the default program for all PDFs, only some, and most should still open in Adobe. A third user then suggested using .NET logic to override the default application and open the PDF with a specific application instead of the default, on a case by case basis.

Uploaded by

deepvineet
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
166 views

Open PDF in Browser - Microsoft Dynamics AX

This document summarizes a discussion on the Microsoft Dynamics AX Forum about opening PDF files in a browser from X++ code. One user asked if there is a way to open a PDF file in a browser from X++. Another user suggested checking a specific blog post for how to do this in AX 2012. However, the original user responded that they do not want to change the default program for all PDFs, only some, and most should still open in Adobe. A third user then suggested using .NET logic to override the default application and open the PDF with a specific application instead of the default, on a case by case basis.

Uploaded by

deepvineet
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Microsoft Dynamics AX Forum

Home Microsoft Dynamics AX Microsoft Dynamics AX Forum Open PDF in browser



Share

BuBbA asked a question on 28 Aug 2017 1:23 AM

Open PDF in browser


Verified

Hi,

Is there any way to open a PDF file in a browser from X++?

Browser Development / Customization / SDK

Microsoft Dynamics AX 2012 MS Dynamics Ax 2012 PDF

Replies (3)

All Responses Only Answers

Mahmoud Hakim responded on 28 Aug 2017 1:28 AM

Open PDF in browser


Suggested Answer

you can check this link

jkmsdax2012.wordpress.com/.../how-to-open-pdf-files-from-ax-using-x-in-ax-
2012

BuBbA responded on 28 Aug 2017 1:32 AM

Open PDF in browser


Unanswered

Problem is that we don't want to change the default program for all PDF files,
only for some of them. Most of the PDF files should just open in adobe.

Koen Roks responded on 28 Aug 2017 1:34 AM

Open PDF in browser


Verified

Hi

Can't you do it with some .net logic where you override the default app

Process myProcess = new Process();    

myProcess.StartInfo.FileName = "acroRd32.exe"; //not the full application path

myProcess.StartInfo.Arguments = "/A \"page=2=OpenActions\"


C:\\example.pdf";

myProcess.Start();
Helpful resources

Community Forums
Ask a question 

Personalize your experience!


Personalized Community is here!

Quickly customize your community to find the


content you seek.

Personalize Community Now 

FEATURED CONTENT

Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today!
Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.

PRODUCT UPDATES

2021 Release Wave 1


Discover the latest updates and new features to Dynamics 365 planned April 2021 through
September 2021.

Release overview guides and videos


Release Plan | Preview 2021 Release Wave 1 Timeline

FASTTRACK
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with
confidence. 

FastTrack Program  |  Finance and Operations TechTalks  |  Customer Engagement


TechTalks  |  Upcoming TechTalks | All TechTalks

Business Applications communities

Select Community 

You might also like