c# - Alignment issue of images -
i request in patience read till end.
back ground : have app accepts file usb , prints formatted data graph plots via printer , when user clicks button - print
process : ever running application. user removes drive after every file printed, copies new files, insert in application , clicks print button.
problem : first time ok. when user removes drive, return new file, alignment of images gone when printing.
eg : bitmap drawn @ right end of paper, shifted left on next time.
i tried : resets printdocument
objects on every print button click. (no use). tried application restart every time print button clicks : works expected. having assumption that, related application start up.
i know vague question. confused data presented here. since don't know part making problem. please ask clarifications, or code part needed verification , post.
edit 1,2 : code explanation
var trackchart3 = new chart(); var chart3area = new chartarea { name = "chart3" }; trackchart3.chartareas.add(chart3area); var locchart3 = new point(-70, 162); var chartsize = new size(90, 60); var chart3rect = new rectangle(locchart3, chartsize); trackchart3.printing.printpaint(e.graphics, chart3rect);
this prints chart @ right side of page first time(application startup printing). after drive removal , insertion gone original -70, not in paper.
Comments
Post a Comment