How to Open PDF File after Creation in TD 51

Discussions specific to Team Developer 5.1.

How to Open PDF File after Creation in TD 51

Postby Sunil » Wed Apr 15, 2009 2:30 am

Hello.

Can anyone suggestion to open PDF file after pdf file creation using 'SalReportPrintToFile'.

Sunil
Sunil K Goel
Shilpi Computers Ltd.
User avatar
Sunil
 
Posts: 459
Joined: Wed Oct 17, 2007 11:31 am
Location: New Delhi INDIA

Re: How to Open PDF File after Creation in TD 51

Postby Didiman » Wed Apr 15, 2009 2:33 am

You can use either the Adobe Acrobat ActiveX component, i think there are some examples here, or the Quickbrowser contro shipping with TD 5.1, this one will display PDF's via the PDF Plugin for the Internet Exploder.
Andreas Neugebauer
Head of IT
AZUL Kaffee GmbH & Co. KG
Bremen / Germany
User avatar
Didiman
 
Posts: 167
Joined: Sat Jan 05, 2008 3:50 am

Re: How to Open PDF File after Creation in TD 51

Postby Sunil » Wed Apr 15, 2009 3:30 am

Thanks Didiman.

My issue is to open pdf automatically after finished PDF file generation, at this time i am creating pdf file , double click on file then pdf opens via acrobat.

Sunil
Sunil K Goel
Shilpi Computers Ltd.
User avatar
Sunil
 
Posts: 459
Joined: Wed Oct 17, 2007 11:31 am
Location: New Delhi INDIA

Re: How to Open PDF File after Creation in TD 51

Postby firstbase107 » Wed Apr 15, 2009 9:05 pm

Hi Sunil,

I suggest the use of Window's "ShellExecute"-function, as it opens the file with whatever program you assigned on your system for "*.pdf".
You'll find the function in Window's shell32.dll.
For further documentation take a look at http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx
(or google "shellexecute")

Cheers from Vienna,
Alex
Alexander Traxler
Senior Developer / Business Analyst
Delegate Software AG | Hintzerstrasse 5/2 | 1030 Vienna | Austria
alexander.traxler@delegate-group.com | http://www.delegate-group.com
User avatar
firstbase107
 
Posts: 108
Joined: Fri Aug 31, 2007 2:15 am
Location: Vienna, Austria

Re: How to Open PDF File after Creation in TD 51

Postby Enator » Sat Aug 01, 2009 4:23 am

Hi

I can make a PDF:
Call SalReportPrintToFile(hWndForm, App.GetAppPath( ) || sReport,'TEST.PDF', sBinds,sInputs, 1,

I can open it:

Call ShellExecuteA( hWndForm, "open", 'TEST.PDF', STRING_Null, STRING_Null, 1 )

I can send an email

!!CB!! 129
Call ShellExecuteA( hWndForm, "open", 'mailto:' || sEmail, STRING_Null, STRING_Null, 1 )

But my qustion is how can I send an attachment 'TEST.PDF' with this email?
Enator
 
Posts: 48
Joined: Sat Apr 18, 2009 6:19 pm

Re: How to Open PDF File after Creation in TD 51

Postby Uwe van der Horst » Sat Aug 01, 2009 6:40 pm

Enator wrote:But my qustion is how can I send an attachment 'TEST.PDF' with this email?
Hi Enator,

as far as I know there is no way to use mailto with attachments for security reasons. We use cutepdf from Acro Software for sending mails. For a very low price you can get a personalized developer license and you are independent from Outlook. We are only setting some registry keys at runtime and it works.

http://www.cutepdf.com/Solutions/pdfwriter2.asp

Regards,

Uwe
Uwe van der Horst
Advo-web GmbH

Image
Go forward! Come join the TD, SqlBase & TDMobile community on
Team Developer Community Forum
Uwe van der Horst
 
Posts: 410
Joined: Thu Apr 10, 2008 11:42 pm
Location: Wetter (Ruhr), Germany

Re: How to Open PDF File after Creation in TD 51

Postby Enator » Sat Aug 01, 2009 10:26 pm

Thanks Uwe ;)
Enator
 
Posts: 48
Joined: Sat Apr 18, 2009 6:19 pm

Re: How to Open PDF File after Creation in TD 51

Postby Enator » Sun Aug 02, 2009 12:03 am

Ok I fixed it in another way just use it if you need:
You do not have the required permissions to view the files attached to this post.
Enator
 
Posts: 48
Joined: Sat Apr 18, 2009 6:19 pm

Re: How to Open PDF File after Creation in TD 51

Postby kclench » Wed Mar 13, 2013 7:32 pm

Hi,
I am looking for an example of how to use the Adobe Acrobat ActiveX component to display a .pdf file. I know we can use shellexecuteA (), as shown in the thread.
and, which approach is better?
thank you.
Karen
kclench
 
Posts: 42
Joined: Mon Dec 08, 2008 7:39 am

Re: How to Open PDF File after Creation in TD 51

Postby Rachana » Mon Apr 15, 2013 10:45 pm

How do I stop adobe from opening pdf document I create thru Adobe PDF printer. I just want to create document and not have adobe open after I do.

Please help.

Thanks,
Rachana
 
Posts: 1
Joined: Mon Apr 15, 2013 10:13 pm
Location: USA


Return to Team Developer 5.1

Who is online

Users browsing this forum: No registered users and 1 guest