Showing posts with label print. Show all posts
Showing posts with label print. Show all posts

Monday, March 26, 2012

Opening Multiple Reports In Adobe?

Does anyone know how to open two or more reports in adobe reader (pdf)? For
example, the user wants to print multiple reports in one whack, so I'd like
to be able to render several reports and ship them to adobe all at once. I
am using the render method of the web service to render reports along with
Response.OutputStream.Write to send the streaming content to the browser.
Any help or advice is greatly appreciated.
Thanks,
DBS5150Check
http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.sqlserver.reportingsvcs&mid=791554f6-b99b-425a-a23c-21eac16fa523&sloc=en-us.
--
Ravi Mumulla (Microsoft)
SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"DBS5150" <DBS5150@.discussions.microsoft.com> wrote in message
news:FAADE7BE-16C3-45B6-8B1D-14919A5930E7@.microsoft.com...
> Does anyone know how to open two or more reports in adobe reader (pdf)?
For
> example, the user wants to print multiple reports in one whack, so I'd
like
> to be able to render several reports and ship them to adobe all at once.
I
> am using the render method of the web service to render reports along with
> Response.OutputStream.Write to send the streaming content to the browser.
> Any help or advice is greatly appreciated.
> Thanks,
> DBS5150

Tuesday, March 20, 2012

Open printer dialog in runtime mode in VB6

Hay,
when i open report from visual basic 6 using viewer its give me only printer icon which only print direct to deafult printer without any option to choose another printer.
How i can choose which printer i want in runtime in VB6If found this:

Report.PrinterSetup 0
Report.PrintOut

But for me it was easier to create my own Printer Selection form. I added a combobox for the Printer (filling it by looping through the Printers Collection), option buttons for All Pages or a specific page range, and a spinner for number of copies. I also added properties to the SelectPrinter Form to hold the data. Once the user picks the options and clicks 'Print', VB send the data to Crystal's .Printout.

Private Sub CRViewer_PrintButtonClicked(useDefault As Boolean)

Dim cOrientation As CRPaperOrientation
Dim cSize As CRPaperSize

useDefault = False

'Capture the original Orientation and Paper Size,
' SelectPrinter resets Landscape to Portrait
cOrientation = Report.PaperOrientation
cSize = Report.PaperSize

'Reset Form and all data by calling the NewData function on the SelectPrinter Form
frmSelectPrinter.NewData

'Set Max Number of Pages
frmSelectPrinter.MaxPages = Report.PrintingStatus.NumberOfPages

'Show Form and wait for User
frmSelectPrinter.Show vbModal

If Len(frmSelectPrinter.DeviceName) > 0 Then
'If a device is selected, print report
Report.SelectPrinter frmSelectPrinter.DriverName, _
frmSelectPrinter.DeviceName, frmSelectPrinter.Port

'Set the Orientation and Paper Size to the original,
' SelectPrinter resets Landscape to Portrait
Report.PaperOrientation = cOrientation
Report.PaperSize = cSize

Report.PrintOut False, frmSelectPrinter.Copies, , _
frmSelectPrinter.FromPage, frmSelectPrinter.ToPage


End If

End Sub

Wednesday, March 7, 2012

Only show group header once per page.

Hi!

I have a main report with a subreport in it. My problem is I want to print the subreports 'report header' whenever the subreport encounters a new page. I didn't find a way to do that so I placed a group in my subreport. But I only want the 'group header' once per page even though the details of the subreport is printing several times per page. Is there a way to do this.

/HeleniusHey, here's how to make a fake pageheader for a subreport and print it on every new page...

http://support.businessobjects.com/library/kbase/articles/c2005103.asp