Ramesh S 129 Posting Pro

Hi,

The only requirement to access an asp.net web application (if not web service) from client PC is a browser like IE, Firefox etc. You don't need to install Oracle client at client PCs. If asp.net application and Oracle database are running different servers, you need to install Oracle client in the server where the asp.net application is running.

If the application is a desktop application (Windows Forms), you need to install Oracle client at client PC along with installation of that application.

Ramesh S 129 Posting Pro

Mark this thread Solved if your question is answered.

Ramesh S 129 Posting Pro

Look into the Adobe Flex open source framework.

Adobe Flex is a software development kit released by Adobe Systems for the development and deployment of cross-platform rich Internet applications based on the Adobe Flash platform. It is simply a library of components that are used to develop applications using Adobe’s flash runtime.

Refer these links for more details.

http://www.adobe.com/devnet/flex/flex_net.html
http://www.developerfusion.com/article/9536/using-adobe-flex-in-visual-studio/

Ramesh S 129 Posting Pro

Try the following code.

Create the a module 'Module1' and use the following code.

Module Module1
    Private Print_Image As Image
    Declare Auto Function BitBlt Lib "GDI32.DLL" ( _
                  ByVal hdcDest As IntPtr, _
                  ByVal nXDest As Integer, _
                  ByVal nYDest As Integer, _
                  ByVal nWidth As Integer, _
                  ByVal nHeight As Integer, _
                  ByVal hdcSrc As IntPtr, _
                  ByVal nXSrc As Integer, _
                  ByVal nYSrc As Integer, _
                  ByVal dwRop As Int32) As Boolean

    Private WithEvents PrintDocument1 As New Printing.PrintDocument()

    Public Sub doPrint(ByVal frm As Form)
        'We make the form look pritty befor its picture  
        Application.DoEvents()
        frm.Refresh()
        Application.DoEvents()
        'Get a Graphics Object from the form 
        Dim FormG As Graphics = frm.CreateGraphics
        'Create a bitmap from that graphics 
        Dim i As New Bitmap(frm.Width, frm.Height, FormG)
        'Create a Graphics object in memory from that bitmap 
        Dim memG As Graphics = Graphics.FromImage(i)
        'get the IntPtr's of the graphics 
        Dim HDC1 As IntPtr = FormG.GetHdc
        Dim HDC2 As IntPtr = memG.GetHdc
        'get the picture 
        BitBlt(HDC2, 0, 0, frm.ClientRectangle.Width, _
        frm.ClientRectangle.Height, HDC1, 0, 0, 13369376)
        'Clone the bitmap so we can dispose this one 
        Print_Image = i.Clone()
        'Clean Up 
        FormG.ReleaseHdc(HDC1)
        memG.ReleaseHdc(HDC2)
        FormG.Dispose()
        memG.Dispose()
        i.Dispose()
        'Show the PrintDialog 
        Dim PrintDialog1 As PrintDialog = New PrintDialog()

        PrintDialog1.Document = PrintDocument1
        Dim r As DialogResult = PrintDialog1.ShowDialog
        If r = DialogResult.OK Then
            'Print the document 
            PrintDocument1.Print()
        End If
    End Sub


    Private Sub PrintDocument1_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
        Dim formGraphics As Graphics = e.Graphics
        e.Graphics.DrawImage(Print_Image, New System.Drawing.PointF(0, 0))
        e.HasMorePages = False
    End Sub …