locked
How to set custom margin in crystal report VS2005 RRS feed

  • Question

  • User758091673 posted

    Hello Friends,

    I want to make a crystal report in visual studio 2005 (web based, language VB) user wants to print this report in continuos stationery (bank cheques) with printer Epson LX300. I am trying to set margin of report with 9" width and 3.66" height in new crystal report but its not allow custom margin.

     

    Is there any another way to do this or how can i do this task ?

    Kindly help thanks in advance.

    Saturday, August 25, 2012 6:36 AM

Answers

  • User-578610739 posted

    Hi Balvant,

    Are you asking about custom margin or custom page? I think you custom page size of cheques.

    see link how to define custom page and set to report.

    http://forums.asp.net/t/1829297.aspx/1?Custom+Size+in+Crystal+report+

    or You can set custom size by programatically

    http://social.msdn.microsoft.com/Forums/en/vscrystalreports/thread/36ba0b75-abfe-4ac6-a302-b1f0f1cca1e2

    http://www.codeproject.com/Articles/12229/Adding-custom-paper-sizes-to-named-printers

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 27, 2012 1:59 AM

All replies

  • User-578610739 posted

    Hi Balvant,

    Are you asking about custom margin or custom page? I think you custom page size of cheques.

    see link how to define custom page and set to report.

    http://forums.asp.net/t/1829297.aspx/1?Custom+Size+in+Crystal+report+

    or You can set custom size by programatically

    http://social.msdn.microsoft.com/Forums/en/vscrystalreports/thread/36ba0b75-abfe-4ac6-a302-b1f0f1cca1e2

    http://www.codeproject.com/Articles/12229/Adding-custom-paper-sizes-to-named-printers

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 27, 2012 1:59 AM
  • User758091673 posted

    Thanks Ajay,

    Given links is very usefull but when i will create a new form in Printer and faxes -> server properties with the name of "Cheque", paper size 9.00in width and 3.66in heignt but the same is not available in crystal report -> Design ->Printer Setup -> Paper size.

    User will export this report in pdf format for print on Cheques (continuous stationary). I have already done this type of projects but all were for standart A4 size printing but in this case its different. Making a report with fix paper size (9.00in Width and 3.66in Height) Is this a right way to do this or any another way please suggest.

    Thanks for help.

     

    Monday, August 27, 2012 3:51 AM
  • User-578610739 posted

    Hi Balvant,

    Are you check all link.

    For your problem you make a custom page size which not default mention in printer ,as in first link you go step by step.

    The same setting you must done in client pc also after your end.

    Monday, August 27, 2012 4:12 AM
  • User758091673 posted

    Hi Ajay,

    I have done it with create new paper size in printer settings , server properties and use this paper size in crystal report. At the time of export in pdf file it will show exact size 9.00 inch width and 3.66 inch height.

    Thanks for your support. Happy coding

    Tuesday, August 28, 2012 8:42 AM
  • User-578610739 posted

    Hi Balvant,

    Thanks dear,

    Are you solved the problem or not?

    Tuesday, August 28, 2012 9:23 AM