Thank you for your response, I just ran the code where it makes the histogram, I got the same problem the green blox with a question mark appears on the output to the printer, but the graph displays correctly on pdf file, the log (initial setting SAS does, and the section there the error shows) and code(principal calls HistogramaPtajesBrutos to generate histogram) is below: 1 ;*';*";*/;quit;run;
2 OPTIONS PAGENO=MIN;
3 %LET _CLIENTTASKLABEL='Reporte';
4 %LET _CLIENTPROJECTPATH='';
5 %LET _CLIENTPROJECTNAME='';
6 %LET _SASPROGRAMFILE=;
7
8 ODS _ALL_ CLOSE;
9 OPTIONS DEV=ACTIVEX;
10 GOPTIONS XPIXELS=0 YPIXELS=0;
11 FILENAME EGSR TEMP;
12 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
13 STYLE=HtmlBlue
14 STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/Ht
14 ! mlBlue.css")
15 NOGTITLE
16 NOGFOOTNOTE
17 GPATH=&sasworklocation
18 ENCODING=UTF8
19 options(rolap="on")
20 ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
21
22 GOPTIONS ACCESSIBLE;
.
.
.
.
.
NOTE: Writing ODS PDF output to DISK destination
"C:\p\ceprepuc\2016-2\PR\2\LE-NE\Salidas\Descriptivos, Histograma y Frecuencias de Puntajes
Brutos LECTURA.pdf", printer "PDF".
NOTE: This SAS session is using a registry in WORK. All changes will be lost at the end of this
session.
NOTE: No units specified for the VORIGIN option. INCHES will be used.
WARNING: Unsupported device 'PDFC' for TAGSETS.SASREPORT13(EGSR) destination.
Using default device 'PNG'.
NOTE: Undefinable color PAR mapped to GRAY.
WARNING: With BARWIDTH= or INTERBAR= specified, the total area of the histogram bars will not
equal the area under a fitted curve.
WARNING: With BARWIDTH= or INTERBAR= specified, the total area of the histogram bars will not
equal the area under a fitted curve.
WARNING: With BARWIDTH= or INTERBAR= specified, the total area of the histogram bars will not
equal the area under a fitted curve.
NOTE: This SAS session is using a registry in WORK. All changes will be lost at the end of this
session.
NOTE: 10837 bytes written to
Sistema SAS
D:\Users\jklau\AppData\Local\Temp\SEG6492\SAS Temporary
Files\_TD5044_C061561_\Prc2\univar3.png.
ERROR: Unable to set printer path per request.
This is usually because the requested printer () is unknown.
ERROR: Denegado el acceso para abrir el fichero: PS#I0000
ERROR: Insufficient authorization to access C:\Windows\system32\sasprt.ps.
ERROR: Physical file does not exist, D:\Users\jklau\AppData\Local\Temp\SEG6492\SAS Temporary
Files\_TD5044_C061561_\#LN00298.
ERROR: Unable to load image FILEREF:PS#I0000; default image will be used instead. %macro principal(txtTipoTema);
ods pdf startpage=now;
ods printer startpage=now;
%cabecera;
title7 J=C "&desAreaGrupo";
title8 J=C "&desTipoTema";
title9 J=C "DESCRIPTIVOS, HISTOGRAMA Y FRECUENCIAS DE PUNTAJES BRUTOS";
%pie_pdf;
ods layout start rows=3;
ods region;
%HistogramaPtajesBrutos(&txtTipoTema);
ods layout end;
%mend;
%macro HistogramaPtajesBrutos(txtTipoTema);
ods pdf startpage=never;
ods printer startpage=never;
goptions horigin=2 cm vorigin=3 hsize=15 cm vsize=12 cm ftext="arial" htext=8pt device=pdfc;
proc univariate data= l1.EvalxAluxTipTem vardef=n noprint;
var puntbruto;
histogram puntbruto /normal(noprint) cfill=PAR font=arial novlabel barwidth=10 vscale=count midpoints=0 to 160 by 20;
where tipotema="&txtTipoTema";
footnote;
run;
%mend;
%let rutasal=&txtCarpeta\&txtAno-&txtCiclo\&txtTipoPr\&txtNumEval\&txtArea-&txtGrupo\Salidas\Descriptivos, Histograma y Frecuencias de Puntajes Brutos &titTipoTema..pdf;
/*rutasal = C:\p\ceprepuc\2016-2\PR\2\LE-NE\Salidas\Descriptivos, Histograma y Frecuencias de Puntajes Brutos LECTURA.pdf, it's a folder I have created*/
goptions reset=all;
goptions device=pdf display;
options orientation=portrait linesize=256 pagesize=45 papersize=("21 cm","29.7cm");
options nonumber nodate copies=&txtCopias;
ods escapechar="^" USEGOPT ;
ODS PRINTER STYLE=CEPREPUC;
ods noproctitle;
ods pdf file = "&rutasal" style = Ceprepuc;
%principal(LE);
ods pdf close;
ods printer close;
... View more