Need Help With Printing On Exact Coordinates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abdulsami2
    New Member
    • Apr 2008
    • 2

    Need Help With Printing On Exact Coordinates

    Here is the problem. I want to scan image of a bank cheque, show it to the user the user than selects (clicking at the appropriate spots on the cheque image) the places at which he wants to print the name/amount/date etc. I save the coordinates and when user click print on another UI, I want to get the data for the places he has defined in the cheque like in the place of NAME the name should be printed, in the place of the AMOUNT the amount should be printed, the user will put the cheque in the printer as paper and the printing should be at the same places on the cheque, which he had previously defined, how can I achieve this whole thing in C#? how can I map coordinates to the printer? What image size (or resolution) should be chosen? or there could be a better approach for that?? Please help me guys.
  • dip_developer
    Recognized Expert Contributor
    • Aug 2006
    • 648

    #2
    Originally posted by abdulsami2
    Here is the problem. I want to scan image of a bank cheque, show it to the user the user than selects (clicking at the appropriate spots on the cheque image) the places at which he wants to print the name/amount/date etc. I save the coordinates and when user click print on another UI, I want to get the data for the places he has defined in the cheque like in the place of NAME the name should be printed, in the place of the AMOUNT the amount should be printed, the user will put the cheque in the printer as paper and the printing should be at the same places on the cheque, which he had previously defined, how can I achieve this whole thing in C#? how can I map coordinates to the printer? What image size (or resolution) should be chosen? or there could be a better approach for that?? Please help me guys.
    I dont think there is any way you can handle this with co-ordinates...... did you consider the case if the cheque[to be printed] is placed incorrectly in the printer tray......???.. ..nothing will be printed in place.......and i dont think you can map co-ordinate to the printer.....wha t are u doing for printing???.... are u using any reports.......? ??

    Comment

    • abdulsami2
      New Member
      • Apr 2008
      • 2

      #3
      Originally posted by dip_developer
      I dont think there is any way you can handle this with co-ordinates...... did you consider the case if the cheque[to be printed] is placed incorrectly in the printer tray......???.. ..nothing will be printed in place.......and i dont think you can map co-ordinate to the printer.....wha t are u doing for printing???.... are u using any reports.......? ??
      I am simply using the drawstring() method on print_doc event and printing, I found out one thing that if the image is scanned on 100dpi then the coordinates of the image and the printer maps (but I have to subtract the HardmarginX and HardMarginY from the coordiantes). I am directly placing the cheque in the printer, the only issue is actually that cheque should be placed properly.

      Comment

      Working...