By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,057 Members | 1,346 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,057 IT Pros & Developers. It's quick & easy.

Microsoft Common Dialog Control is not printing range of pages correctly

P: 1
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
Share this Question
Share on Google+
1 Reply


Expert 5K+
P: 8,434
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

Post your reply

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