ASP call Crystal and Store Procedure (6)

Source: Internet
Author: User
Tags form post html page
' Rptserver.asp

Case "SRCH"
Call Retrieveobjects
Call Checkforerror
' Create page variable
Gvpagenumber = CInt (PAGE)

Select Case VFMT
Case "ENCP"
If Gopagegenerator.findtext (TEXT, 0, Gvpagenumber) then
Response.ContentType = Emfmimetype
Session ("OEMF"). Sendpagenumberrecord (Gvpagenumber)
Else
Gserrortext = "The specified text, '" & Text & "' is not found in the"
Response.ContentType = Emfmimetype
Session ("OEMF"). Senderrormsg, Gserrortext
End If

Case "Html_frame"
' We are being called by HTML Viewer
' Need to get the text ' form post
Dim searchfound
Text = Request.Form ("text")
' Now find out what page the ' text was on
Tempnumber = Gvpagenumber + 1
If (CBool (Gopagegenerator.findtext (TEXT, 0, Tempnumber)) then
Session ("Currentpagenumber") = Tempnumber
Searchfound = 1
Else
Session ("Currentpagenumber") = Gvpagenumber
Searchfound = 0
End If
If Brch <> "" Then
Gvurl = "framepage.asp?brch=" & Brch & "&searchfound=" & Searchfound
Else
Gvurl = "framepage.asp?" Searchfound= "& Searchfound
End If
Response.Redirect Gvurl

Case "Html_page"
' We are being called by HTML Viewer
' Need to get the text ' form post
Text = Request.Form ("text")
' Now find out what page the ' text was on
Tempnumber = Gvpagenumber
If (CBool (Gopagegenerator.findtext (TEXT, 0, Tempnumber)) then
Gvpagenumber = Tempnumber
Set gopage = gopagecollection (gvpagenumber)
Session ("Opageengine"). Imageoptions = 1
Response.BinaryWrite gopage.renderhtml (1,3,3,request. ServerVariables ("Script_name"), 8209)
Else
' Send back an HTML page indicating the text is not found.
Response.Write "End If

End Select


Case "Toolbar_page"

' Redirect to the framepage, need to know if we are
' On the last page.

If session ("Lastpagenumber") <> "then"
If CInt (page) > CInt (Session ("Lastpagenumber")) Then
Session ("Currentpagenumber") = Session ("Lastpagenumber")
Else
Session ("Currentpagenumber") = PAGE
End If
Else
Call Retrieveobjects
Call Checkforerror
' Create the actual page '
Set gopage = gopagecollection (PAGE)
' Check for a exception on the page number
Call Validatepagenumber
If Gopage.islastpage Then
Session ("Lastpagenumber") = Gopage.pagenumber
Session ("Currentpagenumber") = Session ("Lastpagenumber")
Else
Session ("Currentpagenumber") = PAGE
End If
End If
If Brch <> "" Then
Gvurl = "Framepage.asp?brch=" & Brch
Else
Gvurl = "Framepage.asp"
End If

Response.Redirect Gvurl

Case "EXPORT"
Set exportoptions = Session ("Orpt"). Exportoptions
if (Fillexportoptionsobject (EXPORT_FMT)) Then
Call Retrieveobjects
Response.BinaryWrite Gopagegenerator.export (8209)
Call Checkforerror
Else
Response.ContentType = Emfmimetype
Session ("OEMF"). Senderrormsg 1, "Invalid Export Type Specified"
End If

Case "MAP_DD"
' Only supported in Java and active X smart viewers
Select Case VFMT

Case "ENCP"

' Get page Coll



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.