The R Project SVN R

Rev

Rev 83775 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 83775 Rev 83779
Line 166... Line 166...
166
    docinfo.lpszDocName = "GraphAppPrintJob";
166
    docinfo.lpszDocName = "GraphAppPrintJob";
167
    docinfo.lpszOutput = 0;		/* no file output... */
167
    docinfo.lpszOutput = 0;		/* no file output... */
168
    docinfo.lpszDatatype = 0;
168
    docinfo.lpszDatatype = 0;
169
    docinfo.fwType = 0;
169
    docinfo.fwType = 0;
170
 
170
 
171
    /* FIXME: this fails when trying to print to a file using a long path,
171
    /* Note: this fails when trying to print to a file using a long path,
172
       seen on Windows 10 19045, "Microsoft Print to PDF" */
172
       seen on Windows 10 19045, "Microsoft Print to PDF". However, this is
-
 
173
       the same as with other applications, seems to be a Windows issue. */
173
    if (StartDoc(hDC, &docinfo) <= 0) {
174
    if (StartDoc(hDC, &docinfo) <= 0) {
174
	R_ShowMessage(G_("Unable to start the print job"));
175
	R_ShowMessage(G_("Unable to start the print job"));
175
	del(obj);
176
	del(obj);
176
	return NULL;
177
	return NULL;
177
    }
178
    }