Solved

Using Data Report Designer in vb6

Posted on 1998-11-18
2
876 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

730 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