Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 External Development Forums - Design & Architecture Topics
Forum to discuss designing applications to work with SalesLogix. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Design & Architecture Topics | New ThreadView:  Search:  
 Author  Thread: Question: Choosing an application with OpenAttachmentWith (v7.2 SP1)
Taf Greenstreet
Posts: 11
 
Question: Choosing an application with OpenAttachmentWith (v7.2 SP1)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 May 08 3:22 PM
Greetings! This is related to (but separate from) my InsertFileAttachmentEx question.

Immediately after inserting a newly generated PDF document as an attachment (sometimes) I open the attachment for the user so they can print it or review it, like this:

Using slx_App As New SalesLogix.SlxApplication
slx_App.BasicFunctions.OpenAttachmentWith(strAttachmentID)
End Using

When using this method, I immediately get a popup asking what application I want to open the file with (and Adobe PDF is automatically selected).

My question: How do I make it automatically use the installed Adobe PDF application instead of having it offer the user other options? Further, can I specify that it open with Adobe Reader (even if I have to manually install a version) instead of an application that might let them edit the PDF?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Question: Choosing an application with OpenAttachmentWith (v7.2 SP1)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 May 08 4:23 PM
Instead of using OpenAttachmentWith use the VBScript shell to open it. It will automatically open with the default associated program. See more here: http://customerfx.com/pages/crmdeveloper/2004/02/10/how-to-execute-a-file-program-in-vbscript.aspx

-Ryan
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 4:20:53 AM