PC Review


Reply
Thread Tools Rate Thread

DDE hidden behind COM

 
 
David Vestal
Guest
Posts: n/a
 
      24th May 2004
We have some .NET code, and we're attempting to use DDE to open a PDF
document and navigate to a bookmark in it using DDE. .NET doesn't support
DDE, so we hid the DDE behind a COM interface.

It doesn't work; Acrobat Reader starts, but the document isn't opened. I
have verified that the code DOES work, given the same inputs, if pasted
into a plain VB exectuble, and not called through .NET/COM. Why?

My code, trimmed for clarity, follows (frmMain is a blank form with a text
box called txtTransmission):

Public Sub OpenPDF(ByVal strFile As String, ByVal strDest As String)
Dim frm As New frmMain
Dim Q As String: Q = Chr(34) ' Quote character

AppActivate Shell(/*path to acrobat*/, vbNormalFocus)

frm.txtTransmission.LinkTopic = "acroview|control"
frm.txtTransmission.LinkMode = vbLinkManual
frm.txtTransmission.LinkExecute "[DocOpen(" & Q & strFile & Q & ")]" _
& "[DocGoToNameDest(NULL," & Q & strDest & Q & ")]"
End Sub

Thanks,
David
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2007 Worksheet, Hidden Columns, .CSV Format Saves Hidden Column Da Tammy Microsoft Excel Misc 3 2nd Apr 2009 11:40 PM
Rows hidden by Autofilter vs hidden by changing the Hidden property LEO@KCC Microsoft Excel Programming 4 11th Sep 2007 10:14 AM
tc field codes, hidden text, takes up space even when hidden =?Utf-8?B?REpFQg==?= Microsoft Word Document Management 3 14th Jul 2005 12:39 PM
Hidden form shows with FormBorderStyle = maximized altough it is hidden with FixedDialog. Geir Holme Microsoft Dot NET 0 30th May 2005 01:50 PM
Saving hidden data with a worksheet (preferably without using a hidden sheet) Aaron Queenan Microsoft Excel Programming 3 21st Jan 2004 04:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:17 AM.