Solved

Using Data Report Designer in vb6

Posted on 1998-11-18
2
901 Views
Last Modified: 2009-12-16
I am creating a report using the Data Report Designer in vb6 (i guess the replacement for Crystal Reports) and I am trying to create a report on legal paper.  I have the paper dimensions set correctly in the report but when i go to print it, it uses the default paper size of the default printer.  I would like to know if there is a way to designate the papersize in a way that would communicate to the printer when i use the datareport.printreport command the correct papersize to use.  All of my printers are set for letter-size paper and when i print this legal size report, it is printing on one and a half letter-size pages.  I don't want the user to have to manually change the papersize in the printer options everytime they want to print.  Any clues...
0
Comment
Question by:svfafel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
dabellei earned 150 total points
ID: 1445554
From what i know it's impossible to change paper size and orientation in the data report actually it's a microsoft bug, you can't even print in landscape.  

I've found someone in Ng that said you can do it on a local printer by setting the local printer the way you want to print, set legal paper if you want to print legal directly on the printer. i've didn't try it yet.


0
 
LVL 12

Expert Comment

by:roverm
ID: 2380812
I am struggeling (spelled correct I hope) also with the datareport in vb6.
So far I learned that you can only change SOME settings for it using a local printer. When you are using a local printer: there is a nice DLL available at the MSDN called PAGESET.DLL. With this DLL you can change the orientation.
What I do right now:
- automaticly install a copy a a network printer as a local printer when my application starts
- displaying the dialog of the datareport, but before doing that, sending the keys to select the right printer, paperbin and so on (see SENDKEYS at MSDN).

good luck, Mark
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month7 days, 23 hours left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question