Landscape datareport in vb6? 
Author Message
 Landscape datareport in vb6?

I've seen various posts related to problems viewing/printingVB6 datareports
in landscape. Has anyone figured this out yet? It can be fixed manually by
setting the default printer's Document Defaults in settings->printers to
landscape prior to calling datareport.show() however many of the apporaches
which using direct calls to GetPrinter(), SetPrinter(),
DocumentProperties(), etc affect only the local printer context and
datareports appears to be looking at a more global context of printer
characteristics.

In my case I'm running under NT. Knowledge base articles suggest the proper
access rights need to be defined in the OpenPrinter() call for the
SetPrinter() to succeed. I've tried various attempts at this with no
resolve.

Requiring a user to first go to settings->printers to change document
defaults to landscape prior to printing a datareport is a bit extreme.

Thanks in advance



Sat, 18 Aug 2001 03:00:00 GMT  
 Landscape datareport in vb6?
I also am looking for a solution. And I agree 100% with your last remark.

Karlis Abolins

Quote:

> I've seen various posts related to problems viewing/printingVB6 datareports
> in landscape. Has anyone figured this out yet? It can be fixed manually by
> setting the default printer's Document Defaults in settings->printers to
> landscape prior to calling datareport.show() however many of the apporaches
> which using direct calls to GetPrinter(), SetPrinter(),
> DocumentProperties(), etc affect only the local printer context and
> datareports appears to be looking at a more global context of printer
> characteristics.

> In my case I'm running under NT. Knowledge base articles suggest the proper
> access rights need to be defined in the OpenPrinter() call for the
> SetPrinter() to succeed. I've tried various attempts at this with no
> resolve.

> Requiring a user to first go to settings->printers to change document
> defaults to landscape prior to printing a datareport is a bit extreme.

> Thanks in advance



Mon, 20 Aug 2001 03:00:00 GMT  
 Landscape datareport in vb6?
We all do.  I think Microsoft can't figure this out also.  I haven't seen neither
any knowledge base article that would help in Windows to print datareport in
landscape nor a patch to the datareport.
Quote:

> I also am looking for a solution. And I agree 100% with your last remark.

> Karlis Abolins


> > I've seen various posts related to problems viewing/printingVB6 datareports
> > in landscape. Has anyone figured this out yet? It can be fixed manually by
> > setting the default printer's Document Defaults in settings->printers to
> > landscape prior to calling datareport.show() however many of the apporaches
> > which using direct calls to GetPrinter(), SetPrinter(),
> > DocumentProperties(), etc affect only the local printer context and
> > datareports appears to be looking at a more global context of printer
> > characteristics.

> > In my case I'm running under NT. Knowledge base articles suggest the proper
> > access rights need to be defined in the OpenPrinter() call for the
> > SetPrinter() to succeed. I've tried various attempts at this with no
> > resolve.

> > Requiring a user to first go to settings->printers to change document
> > defaults to landscape prior to printing a datareport is a bit extreme.

> > Thanks in advance



Tue, 21 Aug 2001 03:00:00 GMT  
 Landscape datareport in vb6?
Here is only working solution for NT problem:  it forces uses to
change it himself.  You must detect printer.orientation before opening
the data report - if it is isn't what is needed, ask user to change
it.  Regards, Les Caudle

   If Printer.Orientation = DMORIENT_PORTRAIT Then
         MsgBox "After you close this dialog, we will pop up the
printers folder." & vbCrLf & vbCrLf & "Right click on your printer and
set 'Document defaults...' so that it is in LandScape mode."
         Shell "rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL
PrintersFolder"
        Exit Sub
    End If

Quote:

>I've seen various posts related to problems viewing/printingVB6 datareports
>in landscape. Has anyone figured this out yet? It can be fixed manually by
>setting the default printer's Document Defaults in settings->printers to
>landscape prior to calling datareport.show() however many of the apporaches
>which using direct calls to GetPrinter(), SetPrinter(),
>DocumentProperties(), etc affect only the local printer context and
>datareports appears to be looking at a more global context of printer
>characteristics.

>In my case I'm running under NT. Knowledge base articles suggest the proper
>access rights need to be defined in the OpenPrinter() call for the
>SetPrinter() to succeed. I've tried various attempts at this with no
>resolve.

>Requiring a user to first go to settings->printers to change document
>defaults to landscape prior to printing a datareport is a bit extreme.

>Thanks in advance

--



Fri, 24 Aug 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Landscape datareport in vb6?

2. VB6 DataReport Landscape

3. VB6 DataReport Object - Displaying Landscape Reports

4. How to design report in VB6 DataReport in landscape orientation

5. How use VB6 DataReport with landscape orientation.(none)

6. VB6 DataReport - Landscape printing problems

7. VB6 DataReport - Landscape printing problems

8. How do setup the landscape mode in the VB6 - Datareport

9. How do setup landscape mode in VB6-Datareport ?

10. printing landscape report with VB6 datareport?

11. Help to make Landscape in DataReport

12. Need help by printing a datareport in landscape-format

 

 
Powered by phpBB® Forum Software