473,769 Members | 2,106 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to remove the blank space between details and botom margin of datareport

Am trying to print a receipt from VB6.0 with MS.Access as db.
While generating the data report iam getting blank spaces between detailed section and Bottom margin of the report.
Required to know is there any possibilities which i can remove these blank space by coding.

Following codes are used for printing report.

Expand|Select|Wrap|Line Numbers
  1.   With DO_Receipt.Sections(1).Controls
  2.         .Item("Lbl_Date").Caption = Frm_Counter.Lbl_RcptDate.Caption
  3.         .Item("Lbl_Rcptnum").Caption = Frm_Receiver.Lbl_Rcptnumber.Caption
  4.         .Item("Lbl_Blnum").Caption = UCase(Frm_Receiver.Lbl_BlNumber.Caption)
  5.         .Item("Lbl_DONum").Caption = Frm_Receiver.Lbl_DONumber
  6.         .Item("Lbl_Voy").Caption = Frm_Receiver.Lbl_Voyageno
  7.         .Item("Lbl_Payer").Caption = pyr
  8.  End With
  9.  
  10.  With DO_Receipt.Sections(3).Controls
  11.         .Item("Lbl_Csh_Cheq").Caption = pymd
  12.         .Item("Lbl_chq").Caption = chqdt
  13.         .Item("Lbl_Ttlamnt").Caption = Frm_Counter.Txt_AmountPaid.Text
  14.         .Item("Lbl_Rcpt_Isud").Caption = UCase(usrnm)
  15.  End With
  16.  
  17. Load DataEnvironment1
  18. With DataEnvironment1
  19.   .Receiptform Frm_Receiver.Lbl_Rcptnumber.Caption, Frm_Receiver.Lbl_BlNumber.Caption, Frm_Receiver.Lbl_Voyageno.Caption
  20. End With
  21. DO_Receipt.BottomMargin = 6400
  22. DO_Receipt.Refresh
  23. If DO_Receipt.Visible = False Then
  24. DO_Receipt.PrintReport
  25. DO_Receipt.Hide
  26. Unload DO_Receipt
  27. MsgBox "Receipt send to Printer...", vbInformation, "Print receipt"
  28. End If
  29.  
  30.  
Oct 30 '10 #1
0 1751

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3189
by: Al Franz | last post by:
Look at the following web page test. http://netmation.com/test61.htm Why is there blank space on the 4th row, can not get rid of it. Using the latest IE 6
2
37145
by: barb28 | last post by:
Hello, sometimes I have noticed that in web addresses, the number: 20% will show up in the address. I think this is somehow related to a 'blank space', but am unsure, does anyone know about this? I have seen it mostly I think with netscape,
0
2291
by: Penguin | last post by:
Using Access 97, I've created a grading sheet. To save space, the subjects are in vertical columns on a sub-report, like so: Math Spelling Reading N C T A A E U A I C C X M L M C C P B C E U U R E U S R R E
2
2231
by: Amir | last post by:
I really hope someone can explain this behavior. I have spend quite a bit of time and tried a bunch of things, so far nothing has worked. I have a page on which I have a datagrid with template columns. I perform regular expression validations in the EditItemTemplate for the fields that require such validation. The datagrid is inside a div tag to make it scrollable. I have implemented the solution to freeze header for this grid - the...
2
8274
by: Bill Nguyen | last post by:
I tried in vain to add blank space to the end of couple variables as below: mPadding = Convert.ToChar(" ") mdriverBegin.PadRight(16, mPadding) mdriverEnd.PadRight(16, mPadding) mSitekey.PadRight(4, mPadding)
3
12884
by: ThunderMusic | last post by:
Hi, I want to make a toolbox form (like the one in Adobe Photoshop), so I would like to put many buttons one beside the others (beside, over and under, just like the toolbox in photoshop). I thought FlowLayoutPanel would be the thing to go, but I can't remove the space between my buttons even if I put all zeros (0) in margin and padding. Is there something I'm missing? How can I remove this space (±8px between buttons)
1
1333
by: madhurjya | last post by:
please help me... i have a table namely "list" where field names are name,age,remark and table display like $=blank space name age remark ajit 22 jksakgfjkahfhhsaklhj
2
1952
by: voroojak | last post by:
HI i have a proble with the blank space. i have a column for phonenumber. in phone number table each entry may have a different format. i mean one entry can be like this 228 566 59878 and the other one can be 457748 6958 or 258 265897. what i wantto do is that i want all the number stick together and be like this 256987412557. i know that with ltrim or rtim i can remove teh space from the begining or end. thanks alot
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.