Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am using RDLC to generate product receipt but facing issue with layout and design in RDLC.All my report contents are not coming in the center.

My page size is 7.30 centimeter and I want this content to be in center of the report

This is what I am trying to achieve(Expected Output) :

https://i.stack.imgur.com/eV8Mc.png

This is what I am getting :

enter image description here

Also my first table side border is cut as shown with red circle.

How do I make all my contents in center of the rdlc report ?

Updated : Print Layout setting of reportviewer with A4 size and Landscape:

enter image description here

This is what it looks like when I print receipt using Thermal Printer :

enter image description here

There are 2 receipt in above image : Original company generated receipt(right side) and the one generated by rdlc(Left one).

Left side : That receipt is generated by my winform application using RDLC report.As you can see there are lots of content that is cut(removed) in the receipt.

Right side : This is the original receipt and output I am trying to achieve and the red circle indicates things that are being cut(removed) in my reciept(Left one).As you can see BillNo,Date,Time,Title as well as both the table contents are cut(removed in my left side receipt).

I have measured the size of table in Original receipt and it is as below : enter image description here

I have tried to set the size of table i.e 5.2 centimeter in my rdlc report but there is no such option available.

Update 2 : Based on my current RDLC setting this is what I have got :

enter image description here

enter image description here

I have manage to got the receipt size as per company original receipt but now only problem here is data is not coming in center and tables are being removed(cut).

Here is the Thermal Printer setting used for original receipt :

enter image description here

Based on above image,that is why I have kept report Width : 8cm and Height as 29.7 cm

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
854 views
Welcome To Ask or Share your Answers For Others

1 Answer

Looking at your photo it seems that you have a 8cm receipt with 1.4cm left/right margin and 5.2 body.

So you can use this settings in Report > Report properties > Page setup:

  • paper size: custom
  • width: 8cm
  • left/right margin: 1,4cm

The body width must be 5.2cm and you could fill it without using margins.

body width

This is the output with light blue body and white margins.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...