473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Microsoft Common Dialog Control is not printing range of pages correctly

Hi
I'm facing problem while printing Range of pages using Microsoft Common dialog control on vb6. No of copies prints correctly.



The code I used :
Expand|Select|Wrap|Line Numbers
  1.       MainMenu.CMDialog1.flags = PD_PRINTSETUP
  2.       MainMenu.CMDialog1.flags = PD_NOSELECTION       
  3.       MainMenu.CMDialog1.Min = 1
  4.       MainMenu.CMDialog1.Max = 999
  5.       MainMenu.CMDialog1.DialogTitle = svTitle
  6.       MainMenu.CMDialog1.Copies = nvCopies
  7.       MainMenu.CMDialog1.Action = 5
  8.       pages = MainMenu.CMDialog1.flags And cdlPDPageNums
  9.       beginpage = MainMenu.CMDialog1.FromPage
  10.       endpage = MainMenu.CMDialog1.ToPage
  11.  
The information which is getting printed will be runtime.
after this code , data will get generated.

OS: WINDOWS SERVER 2003
LANGUAGE: VB6


Please help

Thanks in advance.
Nov 6 '06 #1
1 1863
Killer42
8,435 Expert 8TB
Expand|Select|Wrap|Line Numbers
  1.       pages = MainMenu.CMDialog1.flags And cdlPDPageNums
  2.       beginpage = MainMenu.CMDialog1.FromPage
  3.       endpage = MainMenu.CMDialog1.ToPage
  4.  
So, are you saying that these three lines return the wrong values? If not, then I guess it's your problem. :)
Nov 6 '06 #2

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

Similar topics

5
by: John Lauwers | last post by:
Hello, Is there a way to move the commondialog to a specific position ? Greets John
7
by: J Smithers | last post by:
I have several ASPX pages (with code-behind logic) that I reuse amongst many Web sites on the same production server. Currently each Web site has its own copy of these aspx pages. I was thinking...
3
by: John Peterson | last post by:
Hello all! I'm at my wits end trying to search for what I assumed to be a relatively straightforward task. I have a Web application written in C#, and I have a button on the form that I want to...
6
by: Steve Barnett | last post by:
I need to include a wizard in my application that will, as one of the steps, ask the user to select a file to open and (later) a file to save it as. The naff way to do this would be to have a...
1
by: henning | last post by:
Hello, I'm involved in the development of a set of web pages that are meant to be used on touch screens. We use ordinary HTML, PHP and javascript for the pages. I wold prefer a serverside...
2
by: Brad Pears | last post by:
I have some sample code that uses the print dialog, print preview and a print direct options. If I select print preview and then click the printer icon from that, the document prints. If I...
1
by: cmos1981 | last post by:
Visual Basic 6.3 - i am auto printing a screen using vb. i dont want the print dialog box to appear. the page should just print to the default printer. alternatively if i could use "sendkeys" to...
3
by: deciacco | last post by:
I'm trying to write a label printing SDI app with a small preview on the main form itself. Every time I run the InvalidatePreview event on the preview control to redraw the preview I get the...
23
by: =?Utf-8?B?TWlrZTE5NDI=?= | last post by:
This is an example that is supposed to work in VB http://support.microsoft.com/kb/175512/en-us After spending a couple of hours downloading and installing VB Express 2008 after someone told me it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
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,...

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.