I have two line charts on a DevExpress xtrareport. For some reason, the curves are drawn fine on one but not the other.
If I print the report using PDF995 application, or using Microsoft XPS document Writer, both charts appear fine.
However, if I print the report directly to the printer (a TA/UTAX), the curves on one of the graphs don't appear at all.
This is a screenshot from the output of the XPS document.
But when it's sent directly to the printer, the curves don't appear on the left hand graph. Below is a scan of the same graphs printed to the printer.
I'm fairly positive it is related to the data in the data series because if I switch the binding so that the right-hand graph uses the current left-hand data, I get the same problem but with that graph. However, on examining the data, I can't find anything amiss.
The data comes from a list of Tuples (string, decimal, decimal):
The SeriesDataMember is bound to Item1
The ArgumentDataMember is bound to Item2
The ValueDataMembers Value is bound to Item3
And the report is printed using the DevExpress ReportPrintTool.Print() method.
Strangely, the graph on the left in the screenshot is printed fine, and that gets its data from a similar data structure.
What could be different between printing to an actual printer and printing to a PDF writer? (PDF995)
Edit
As per my comment, starting the curve at -0.01, -0.01 allows extra space below the origin and then the curve prints fine. This currently works as a workaround as the graph will never be printed in a fine enough detail to notice the difference between 0.01 and 0. But still... weird...
is that curves visible on the real printer if you try to print result Microsoft XPS document file?
currently i think that your problem is in your printer : (
Related
In r-markdown pdf report I need to number and caption all my graphs and nothing I could find on the internet helped. So each picture or graph displayed needs to be something like
"Picture 1: qq-plot of the variable "age"."
The problem is also with two graphs in a single code chunk. To be precise, they aren't in a single merged graph, but two separate graphs with each their own cooedinate system.
I would like to know if it's possible to format a "Data - Name" of The Series such as; Font, Size Alignment, and positioning.
I run into an issue where Printing the chart doesn't display the name(different than images) because of its length.
However, App and controls do, correctly. So I was hoping to re-format when calling on Print.
There is no code(mine) as I couldn't find anything related to what I am trying to achieve it seems like all refers to an actual data points formatting but NOT a name formatting itself.
Thank you
I am facing strange with the PDF printing with Foxypreviewer in Visual foxpro while trying to print multiple reports to one pdf using "NOPAGEEJECT".
We have some reports, which are supposed to be printed on in the vertical direction while other reports are supposed to be printed in the horizontal direction.
Now I get all pages in the same direction, depending on which direction the first report in the template have.Sample code is given below which I am trying to print to pdf:
REPORT FORM Itinerary01 object type 10 NOCONSOLE NOPAGEEJECT
REPORT FORM Itinerary02 object type 10 NOCONSOLE
Please help me to solve this.
The magic is that if I run these file one by one then only the last one will go for pdf but when I selected both and execute, the result was OK.
You are running files from command prompt so you can not get desired result. Put these command in a prg and see the magic.
REPORT FORM LOCFILE(_Samples + "\Solution\Reports\Colors.frx") ;
OBJECT TYPE 10 NOPAGEEJECT NORESET TO FILE "d:\Test.pdf"
REPORT FORM LOCFILE(_Samples + "\Solution\Reports\Percent.frx") ;
OBJECT TYPE 10 PREVIEW
I have some SAS code that draws 2 charts on identically scaled axes - one stacked vertical bar chart, and one line chart. It then draws the lines on top of the bars via proc greplay to produce a stacked bar + line chart. This is output to pdf via ODS.
When I run my code in an interactive SAS session, it works as intended - the 2 charts are the same size and line up exactly on top of one another. However, if I run exactly the same code in a batch session, the bar chart is squashed into the left half of the chart area and the line chart is displayed at full size.
Any idea what could be causing this? It's possible that there are some different settings between the batch and interactive sessions, but I'm not sure which ones could be responsible.
I was only including the final proc greplay inside the ODS sandwich used to produce the pdf. Once I put the preceding chart procs, goptions statements etc. there as well (using goptions nodisplay to make sure that the individual charts didn't end up in the PDF before being overlaid), it all rendered as expected.
I created A4 PDF document using iTextSharp. It contains simple table of which every cell in fact is label on the page. I drew it by using PdfContentByte, so the size of the programmatically drawing area is 595 x 842 points. Thus I drew rectangles (as table cells) using points as units.
I fixed the size and place (in points) of printing content by checking printed pages on my printer. I used Acrobat Reader and options: without scaling ('None') and default paper size 8.3' x 11.7'
Now if I print the same PDF on different printer the content (table) is shifted to the left or/and top direction. So the distances between page's edges and the outer frame of the table are different on different printers. Sometimes the content is cut but I know that different printers have different printing area - so it understood.
But I can not understand why it is shifted. Are they others parameters that I don't know?