🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #877

Re: How not to have "print into a file" dialog box

#877
From: Vorms
Date: Mon, 29 Sep 2003 14:09
23 lines
1515 bytes
Hello,
I try to program an application in Visual C++ using DOCINFO structur to tell the driver where to put the pdf resulting file.
If I don't use the lpszOutput field the pdf file is producted in the default path and it is ok.
When I set the field lpszOutput the file is producted in the right path but the file is corrupted.

Is any body can help me ?

Thanks a lot in advance.

Thierry Vorms
tvorms@autodose.ch

exemple

DOCINFO di;
::ZeroMemory (&di, sizeof (DOCINFO));
  di.lpszDocName = strTitle;
  char path[1000];
  strcpy(path, "C:\\MTM2002\\data\\[pdf]\\short.pdf");

di.lpszOutput = (LPCTSTR)path;
 // di.lpszOutput = NULL;
    di.cbSize = sizeof (di);
Technical Details
Message-ID: <2ccd8bc8.1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!newsfeeds.sol.net!newsengine.sol.net!skynet.be!skynet.be!newsgate.cistron.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd8bc8.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c61a,cface6c541b188c2
X-Google-Attributes: gid10c61a,public
X-Google-ArrivalTime: 2003-09-29 07:40:05 PST
From: Vorms <member@adobeforums.com>
Path: arc1-ca.pugleaf.net!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!newsfeeds.sol.net!newsengine.sol.net!skynet.be!skynet.be!newsgate.cistron.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.postscript.programming
Subject: Re: How not to have "print into a file" dialog box
Message-ID: <2ccd8bc8.1@webx.la2eafNXanI>
Date: Mon, 29 Sep 2003 07:09:35 -0700
References: <2ccd8bc8.-1@webx.la2eafNXanI>
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit