Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Printing from VB.Net

Printing from VB.Net

Scheduled Pinned Locked Moved Visual Basic
csharpdata-structureshelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Senthil_M
    wrote on last edited by
    #1

    Hi all, I have a data byte array which further I will convert it as PDF and print it. Can anyone help me in this regards. Is there any chance to print directly from byte array without converting into PDF. Thanks in advance Senthil

    D 1 Reply Last reply
    0
    • S Senthil_M

      Hi all, I have a data byte array which further I will convert it as PDF and print it. Can anyone help me in this regards. Is there any chance to print directly from byte array without converting into PDF. Thanks in advance Senthil

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Senthil_GeoEdge wrote:

      I have a data byte array which further I will convert it as PDF and print it. Can anyone help me in this regards.

      Help with what?? What is this data??

      Senthil_GeoEdge wrote:

      Is there any chance to print directly from byte array without converting into PDF.

      Are you asking how to print a bunch of numbers on a page??

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Senthil_GeoEdge wrote:

        I have a data byte array which further I will convert it as PDF and print it. Can anyone help me in this regards.

        Help with what?? What is this data??

        Senthil_GeoEdge wrote:

        Is there any chance to print directly from byte array without converting into PDF.

        Are you asking how to print a bunch of numbers on a page??

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        S Offline
        S Offline
        Senthil_M
        wrote on last edited by
        #3

        Hi, Thanks for reply. In detail, I have designed a .rdl report using SQL Report Services 2005 in a server. I have vb.net program in my client machine to access that report. After rendering that report in client, I recieve data in byte() format. I further use file stream to write that as a PDF. Now, I want to print that to a particular printer. Here is the code. =========Code Starts Dim results As Byte() results = objReportingService.Render(m_sReportPath, sOutputFormat, HistoryId, DeviceInfo, LoadParams(), RSCredentials, ShowHideToggle, Encoding, MimeType, RSParamsUsed, RSWarnings, StreamIds) Dim fs As System.IO.FileStream fs = System.IO.File.OpenWrite(m_sFilePath) fs.Write(results, 0, results.Length) fs.Close() =========Code Ends Now the question again. I want to print that PDF file OR Is there any chance to print directly from byte array without converting into PDF? I hope its clear. Thanks Senthil

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups