Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

SavetoPDF then Open the PDF without showing the Powerbuilder screen

3 posts in DataWindow Last posting was on 2009-11-24 14:22:02.0Z
Sravan Posted on 2009-11-19 19:02:38.0Z
From: Sravan <sr.100102@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: SavetoPDF then Open the PDF without showing the Powerbuilder screen
Date: Thu, 19 Nov 2009 11:02:38 -0800 (PST)
Organization: http://groups.google.com
Lines: 18
Message-ID: <54e0f9e7-51a5-4db0-bacf-47f7b17d35e4@m16g2000yqc.googlegroups.com>
NNTP-Posting-Host: 199.90.35.11
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1258657358 15121 127.0.0.1 (19 Nov 2009 19:02:38 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 19 Nov 2009 19:02:38 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: m16g2000yqc.googlegroups.com; posting-host=199.90.35.11; posting-account=UTzE8QoAAAC3nYtUFSzhmOMS6rL8Ql2h
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!m16g2000yqc.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90313
Article PK: 409919

Hello,

My Environment is PowerBuilder 10 with DeskPDF driver installed on
system.
My requirement is to show user directly report in PDF Format with out
showing the PowerBuilder Application
(Application is installed on the user system and it is invoked thru
command line with some parameters).
I could able to show the SaveAs dialogue of the DeskPDF(Ofcourse user
is seeing the PowerBuilder Application on the back ) by invoking print
screen after changing the printer to DeskPDF. But i would also want to
close the SaveAs dialogue and application and directly open up the
PDF.

I would appreciate if any body can help me on this issue.

Thanks,
Sr


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-11-19 20:10:01.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <54e0f9e7-51a5-4db0-bacf-47f7b17d35e4@m16g2000yqc.googlegroups.com>
Subject: Re: SavetoPDF then Open the PDF without showing the Powerbuilder screen
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4b05a619$1@forums-1-dub>
Date: 19 Nov 2009 12:10:01 -0800
X-Trace: forums-1-dub 1258661401 10.22.241.152 (19 Nov 2009 12:10:01 -0800)
X-Original-Trace: 19 Nov 2009 12:10:01 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90316
Article PK: 409921

In general, you can open a file with the program associated with its
extension using the ShellExecute API. If you saved the file as .pdf, it is
almost certainly associated with Adobe Reader. Here is some sample code:
http://www.rgagnon.com/pbdetails/pb-0008.html
Note that with PB10, you need to specify ShellExecuteW to get the Unicode
version.

--
Report Bugs to Sybase: http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement

"Sravan" <sr.100102@gmail.com> wrote in message
news:54e0f9e7-51a5-4db0-bacf-47f7b17d35e4@m16g2000yqc.googlegroups.com...
> Hello,
>
> My Environment is PowerBuilder 10 with DeskPDF driver installed on
> system.
> My requirement is to show user directly report in PDF Format with out
> showing the PowerBuilder Application
> (Application is installed on the user system and it is invoked thru
> command line with some parameters).
> I could able to show the SaveAs dialogue of the DeskPDF(Ofcourse user
> is seeing the PowerBuilder Application on the back ) by invoking print
> screen after changing the printer to DeskPDF. But i would also want to
> close the SaveAs dialogue and application and directly open up the
> PDF.
>
> I would appreciate if any body can help me on this issue.
>
> Thanks,
> Sr


Sravan Posted on 2009-11-24 14:22:02.0Z
From: Sravan <sr.100102@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: SavetoPDF then Open the PDF without showing the Powerbuilder screen
Date: Tue, 24 Nov 2009 06:22:02 -0800 (PST)
Organization: http://groups.google.com
Lines: 9
Message-ID: <b5c2bec8-8e3e-480f-8291-b67ef39cd370@e31g2000vbm.googlegroups.com>
References: <54e0f9e7-51a5-4db0-bacf-47f7b17d35e4@m16g2000yqc.googlegroups.com> <4b05a619$1@forums-1-dub>
NNTP-Posting-Host: 199.90.35.11
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1259072522 21881 127.0.0.1 (24 Nov 2009 14:22:02 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 24 Nov 2009 14:22:02 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: e31g2000vbm.googlegroups.com; posting-host=199.90.35.11; posting-account=UTzE8QoAAAC3nYtUFSzhmOMS6rL8Ql2h
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!news-out.readnews.com!transit3.readnews.com!postnews.google.com!e31g2000vbm.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90341
Article PK: 409944

Jerry,

Thank you very much for the response. I am just wondering how can i
supress the saveas dialogue of DESKPDF printer.If i can supress this
one, i can save to some place with some name and open with the script
which you provided.

Thanks,
Sra