Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Chart for .NET
»
how to print chart on PrintDocument?
how to print chart on PrintDocument?
Post Reply
how
to
print
chart
on
PrintDocument
?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Nevron Support
Nevron Support
posted 3 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hi
Yunhyungjeon
,
Thank
you
for
sending
the
save
file
.
We
investigated
the
issue
and
indeed
the
control
is
printing
properly
,
but
only
when
the
amount
of
data
is
low
.
We
suspect
this
is
caused
by
a
problem
in
Windows
and
the
workaround
is
to
create
a
high
res
raster
,
which
in
turn
can
be
printed
:
Bitmap
bitmap
=
new
Bitmap
(
2000
,
2000
,
printerGraphics
);
n
Chart
Control1
.
ImageExporter
.
RenderToBitmap
(
bitmap
,
false
);
//
you
can
draw
the
bitmap
to
the
printerGraphics
here
bitmap
.
Dispose
();
We
hope
this
helps
-
let
us
know
if
you
meet
any
problems
or
have
any
questions
.
Best Regards,
Nevron Support Team
Reply
Like
0
yunhyung jeon
yunhyung jeon
posted 3 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 13,
Visits: 190
Okay
,
here
is
my
chart
'
s
state
file
.
I
hope
the
problem
will
be
solved
soon
.
Thank
you
.
Attachments
chartstate.zip
(
351 views,
71.00 KB
)
Reply
Like
0
Nevron Support
Nevron Support
posted 3 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hi
,
Please
send
the
state
of
the
control
for
review
.
To
save
the
control
state
you
can
use
:
n
Chart
Control1
.
Serializer
.
SaveControlStateToFile
("
c
:\\
temp
\\
chart
state
.
xml
",
Nevron
.
Serialization
.
PersistencyFormat
.
XML
,
null
);
Let
us
know
if
you
meet
any
problems
...
Best Regards,
Nevron Support Team
Reply
Like
0
yunhyung jeon
yunhyung jeon
posted 3 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 13,
Visits: 190
hello
I
'
m
using
Nevron
.
NET
Chart
at
.
net
5
.
0
,
winform
.
However
,
I
have
some
questions
.
I
want
to
print
my
Nevron
Chart
,
so
,
I
'
m
using
C
#'
s
PrintDocument
PrintPage
event
.
But
,
my
chart
do
not
shown
at
print
preview
page
.
Here
is
my
chart
print
code
.
&
nbsp
; &
nbsp
; &
nbsp
;
NRectangleF
chart
Bounds
=
new
NRectangleF
(
headerBounds
.
Left
,
headerBounds
.
Bottom
,
headerBounds
.
Width
,
CompHeight
*
8
);
&
nbsp
;&
nbsp
;&
nbsp
;&
nbsp
;&
nbsp
;
N
Chart
PrintView
chart
View
=
new
N
Chart
PrintView
(
n
Chart
Control
.
PrintManager
,
n
Chart
Control
.
Document
,
ev
.
Graphics
);
&
nbsp
;&
nbsp
;&
nbsp
;&
nbsp
;&
nbsp
;
chart
View
.
Print
(
chart
Bounds
);
&
nbsp
;&
nbsp
;&
nbsp
;&
nbsp
;&
nbsp
;
chart
View
.
Dispose
();
First
image
is
my
origin
chart
at
runtime
.
Second
Image
is
my
printview
image
.
When
I
draw
just
small
data
,
printview
page
is
well
.
But
,
If
I
draw
many
datas
,
my
chart
are
not
shown
like
these
images
.
How
can
I
fix
it
?
Tags
chart
print
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search