From XSQL how to convert to XSLFO?
From XSQL, after applying xsl style sheet now all i can produce is a html or excel file output.
Instead of that can i produce XSLFO file and redirect this to another XSQL page to produce PDF output?
Please assist!
Many Thanks.
Here is a small PL/SQL block that we have used to convert varchar2 to blob.
declare
cursor get_blob is
select blob_statement
from report
where report_id = 205
FOR UPDATE OF blob_statement;
v_loc blob;
v_raw_buffer raw(32767);
v_amount binary_integer := 32767;
v_offset binary_integer := 1;
v_buffer VARCHAR2(32767);
begin
open get_blob;
fetch get_blob into v_loc;
close get_blob;
v_buffer := 'Sample text';
v_raw_buffer := utl_raw.cast_to_raw(v_buffer);
v_amount := utl_raw.length(v_raw_buffer);
dbms_lob.write(v_loc, v_amount, v_offset, v_raw_buffer);
commit;
end;
Similar Messages
-
Hi,
We have employee photos(JPG Format) stored in Content server. And now we want to print the photos in smartforms. For this I had written the below code to read the photo from content server in binary format as below.
REPORT ZTEST1.
PARAMETERS P_PERNR TYPE PERNR_D.
DATA: PS_CONNECT_INFO TYPE TOAV0,
IT_BINARY TYPE TABLE OF SDOKCNTBIN.
CALL FUNCTION 'HR_IMAGE_EXISTS'
EXPORTING
P_PERNR = P_PERNR
* P_TCLAS = 'A'
* P_BEGDA = '18000101'
* P_ENDDA = '99991231'
IMPORTING
* P_EXISTS =
P_CONNECT_INFO = PS_CONNECT_INFO
* EXCEPTIONS
* ERROR_CONNECTIONTABLE = 1
* OTHERS = 2
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
IF PS_CONNECT_INFO IS NOT INITIAL.
CALL FUNCTION 'SCMS_DOC_READ'
EXPORTING
STOR_CAT = SPACE
CREP_ID = PS_CONNECT_INFO-ARCHIV_ID
DOC_ID = PS_CONNECT_INFO-ARC_DOC_ID
* PHIO_ID =
* SIGNATURE = 'X'
* SECURITY = ' '
* NO_CACHE = ' '
* RAW_MODE = ' '
* IMPORTING
* FROM_CACHE =
* CREA_TIME =
* CREA_DATE =
* CHNG_TIME =
* CHNG_DATE =
* STATUS =
* DOC_PROT =
TABLES
* ACCESS_INFO =
* CONTENT_TXT =
CONTENT_BIN = IT_BINARY
* EXCEPTIONS
* BAD_STORAGE_TYPE = 1
* BAD_REQUEST = 2
* UNAUTHORIZED = 3
* COMP_NOT_FOUND = 4
* NOT_FOUND = 5
* FORBIDDEN = 6
* CONFLICT = 7
* INTERNAL_SERVER_ERROR = 8
* ERROR_HTTP = 9
* ERROR_SIGNATURE = 10
* ERROR_CONFIG = 11
* ERROR_FORMAT = 12
* ERROR_PARAMETER = 13
* ERROR = 14
* OTHERS = 15
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
ENDIF
Now the issue is I want to convert that binary data to bitmap image and upload the same in to SE78. So that I can use that BMP image from SE78 in my smartforms.
I had used the class CL_IGS_IMAGE_CONVERTER to covert the image into bmp but it is giving error that error in IMAGE DATA CORRUPT & Error Code 3. The conversion code used is as below.
******* CONVERT THE JPG IMAGE INTO BMP PHOTO. **********
DATA: L_IGS_IMGCONV TYPE REF TO CL_IGS_IMAGE_CONVERTER,
L_IMG_BLOB TYPE W3MIMETABTYPE,
L_IMG_SIZE TYPE W3PARAM-CONT_LEN,
L_IMG_TYPE TYPE W3PARAM-CONT_TYPE,
L_IMG_SUBTYPE TYPE W3PARAM-CONT_TYPE,
L_IMG_URL TYPE W3URL,
L_ERR_CODE TYPE I,
L_ERR_TEXT TYPE STRING,
P_DEST TYPE CHAR32 VALUE 'IGS_RFC_DEST'.
DATA: G_IMG_BLOB TYPE W3MIMETABTYPE,
G_IMG_TYPE TYPE W3PARAM-CONT_TYPE,
G_IMG_SIZE TYPE W3PARAM-CONT_LEN.
IF NOT IT_BINARY[] IS INITIAL.
G_IMG_BLOB[] = IT_BINARY.
CREATE OBJECT L_IGS_IMGCONV
EXPORTING
DESTINATION = P_DEST.
CALL METHOD L_IGS_IMGCONV->SET_IMAGE
EXPORTING
BLOB = G_IMG_BLOB
BLOB_SIZE = G_IMG_SIZE.
CASE PS_CONNECT_INFO-RESERVE.
WHEN 'TIF'.
G_IMG_TYPE = 'image/tiff'.
WHEN 'JPG'.
G_IMG_TYPE = 'image/jpeg'.
WHEN 'PNG'.
G_IMG_TYPE = 'image/png'.
WHEN 'GIF'.
G_IMG_TYPE = 'image/gif'.
WHEN 'BMP'.
G_IMG_TYPE = 'image/x-ms-bmp'.
WHEN OTHERS.
EXIT.
ENDCASE.
L_IGS_IMGCONV->INPUT = G_IMG_TYPE.
L_IGS_IMGCONV->OUTPUT = 'image/x-ms-bmp'.
* PERFORM GET_SIZE USING PICTURE_CONTAINER
* L_IGS_IMGCONV->WIDTH
* L_IGS_IMGCONV->HEIGHT.
CALL METHOD L_IGS_IMGCONV->EXECUTE
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC IS INITIAL.
CALL METHOD L_IGS_IMGCONV->GET_IMAGE
IMPORTING
BLOB = L_IMG_BLOB
BLOB_SIZE = L_IMG_SIZE
BLOB_TYPE = L_IMG_TYPE.
SPLIT L_IMG_TYPE AT '/' INTO L_IMG_TYPE L_IMG_SUBTYPE.
ELSE.
CALL METHOD L_IGS_IMGCONV->GET_ERROR
IMPORTING
NUMBER = L_ERR_CODE
MESSAGE = L_ERR_TEXT.
BREAK-POINT.
ENDIF.
ENDIF.
ENDIF.
So could you please some one help me how to convert JPEG Photo to BMP programatically.
Regards,
Mayur.johnandersonpalmdesert wrote:
My printer is requesting a vector file.
Jpeg File format does not support vectors. Photoshop has limited vector support and tools. Photoshop can not save vector file formats like SVG. What File type does your printer want?
Adobe Illustrator is Adobe vector application. -
For example i have labview 7.0 and i wan to open in LV 8.0 or still higher..so how to convert my VIs to higher versions or vice versa..I need the steps to convert.
Hello,
If you want to convert a vi written in LV 7.0 to a higher version (say 8.5) open the vi written in 7.0 with 8.5 and then save the same. (once you save it to 8.5, you can not open it with 7.0 since 8.5 is higher than 7.0. So male sure to back up your 7.0 version files)
Now to convert a vi from 8.5 to 7.0 (for example) it gets a litle complicated becase you have load the vi in LV8.5 and then select the option File-->Save for Previous version and select the appropriate option (like 8.2, 8.0 or any other that gets populated in the drop down menu).
Now say that you have selected the option 8.0, Again the vi saved in 8.0 and follow the same procedure to save it to 7.0 version of labVIEW.
The reason i said it gets complicated becasue you must have installed all the version of labVIEW (in the above case its LV 8.0) for a sucessful downgrade.
Hope this helps you out
Guru
Regards
Guru (CLA) -
Hi All,
I have a requirement in my project like to convert the date time from one format to another.my situation is like to convert the date time from MM-DD-YYYThh:mm:ss to YYYY-MM-DDThh:mm:ss format. I am using the soa suite 11.1.1.6.
Can any one suggest me how to convert in the BPEL transformation.
Thanks,
Sanju.Hi Sanju,
Store the date to be converted into a variable viz. dateVar. Now, process an expression in assign as: xp20:format-dateTime($dateVar,'[Y0001]-[M01]-[D01] [h]:[m01]:[s01]').
Regards -
How to convert date from "yyyymmdd" to "MM/DD/YYYY" format
1. I have one BLDAT field in my internal table.
its getting updated from input file.
2. The value in the input file is like yyyymmdd.
So the internal table field is filled like this
"YYYYMMDD".
3. After this,I have to compare this internal table
field with BSAD table.
4. The BLDAT field in BSAD table is in the format of
"MM/DD/YYYY".
5. the BLDAT field is having diff format in internal table and BSAD table.So I am unable to check this value.
How to convert it as like the BSAD table format."MM/DD/YYYY" format.
Thanks in advance!!Using the WRITE statement
data: gd_date(10). "field to store output date
* Converts date from 20020901 to 09.01.2002
write sy-datum to gd_date mm/dd/yyyy.
OR u can
CONCATENATE gd_date+4(2) gd_date+6(2) gd_date+0(4)
into gd_date seperated by '/' .
Hope this helps.
Kindly reward points and close the thread for the
answer which helped u OR get back with queries. -
How to convert chinese letlers received from a device to understandable information?
Hello,
I would like to read from a sound level meter, I'm using VISA functions, but when I run the VI at first the information received is in chinese and I didn't find how to convert it so as to be able to read an understandable data.
What can I do to read properly the data sent by the sound level meter?
Here is a photo of the problem and the VI I conceived.
Thank you in advance for your help.
Pièces jointes :
communication série RS232 avec le sonomètre.vi 33 KBHello Yasmine,
Thank you for posting.
Can you post a photo of the issue. Have you tried to change the language of your instrument ?
Regards,
Isabelle G.
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
Été de LabVIEW 2014
12 présentations en ligne, du 30 juin au 18 juillet -
Lost template, have pages from template, how can I convert?
In a moment of crass stupidity, I managed to delete a template upon which several pages of a site under development are based. There was a P7 menu on the page. Fortunately, I have a couple of pages based on the template alive and well. Can someone tell me how to convert one of these pages back to the template from which it was created?
Pages from the template are
http://www.jdcdemo.com/pbc/greater-pine-bluff-chamber-local-apartment-list.html
http://www.jdcdemo.com/pbc/greater-pine-bluff-chamber-community-calendar.html
The calendar page is rife with errors of which I am aware. Most are not in the template.
Can someone tell me how to proceed to recover from my dumb mistake?
Thanks,
JoeWell, we have gotten a lot of looks and no answer. From another board, the first response was the correct one, to wit:
open a page created from the original (now missing) template
- go to Modify>Templates>Detach from template.
- save this via File>Save as template
- create new editable regions via Insert>Template Objects>Insert Editable Region
I took a hard look at the editable region in the file from the template, and set up and named the new editable region as a clone of the original. The pages from the template, worked just fine.
Blind hog finds acorn,
Joe -
How to Create an XML document from XSQL servlet which follows a particular DTD struct
how to Create an XML document from XSQL servlet which follows a particular DTD structure.Could anyone send me a sample code for this.
You'll need to associate an XSLT transformation with your XSQL page that transforms the canonical result into your DTD-valid format.
For example, given an XSQL page like:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="rss.xsl" ?>
<xsql:query max-rows="3" connection="demo" xmlns:xsql="urn:oracle-xsql">
select title,id,description,url,to_char(timestamp,'Mon DD') timestamp
from site_entry
order by id desc
</xsql:query>and an "rss.xsl" stylesheet that looks like this:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" doctype-system="rss-0.91.dtd"/>
<xsl:template match="/">
<xsl:for-each select="ROWSET/ROW">
<rss version="0.91">
<channel>
<title>Do You XML?</title>
<link>http://xml.us.oracle.com</link>
<description>Oracle XML Website Demo</description>
<language>en-us</language>
<xsl:for-each select="ITEM">
<item>
<title><xsl:value-of select="TITLE"/></title>
<link><xsl:value-of select="URL"/></link>
<description><xsl:value-of select="DESCRIPTION"/></description>
</item>
</xsl:for-each>
</channel>
</rss>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>You produce DTD-valid output against the rss-0.91.dtd DTD that looks like:
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE rss SYSTEM "rss-0.91.dtd">
<rss version="0.91">
<channel>
<title>Do You XML?</title>
<link>http://xml.us.oracle.com</link>
<description>Oracle XML Website Demo</description>
<language>en-us</language>
</channel>
</rss>
<rss version="0.91">
<channel>
<title>Do You XML?</title>
<link>http://xml.us.oracle.com</link>
<description>Oracle XML Website Demo</description>
<language>en-us</language>
</channel>
</rss>
<rss version="0.91">
<channel>
<title>Do You XML?</title>
<link>http://xml.us.oracle.com</link>
<description>Oracle XML Website Demo</description>
<language>en-us</language>
</channel>
</rss> -
How to convert a string from upper case to lower case in FOX formula
Hi Experts,
How to convert a string from upper case to lower case in FOX formula?
Thanks,
Cheers!!!
PANKAJThe last result.append( c ) should be:
result.append( Character.toLowerCase(c) ); -
How to convert a string from lower case to upper case withour using transla
Hi all,
how to convert a string from lower case to upper case withour using translate,
Thanks in Advance,
ReddyRefer to this related thread
Re: hi guys this very urgent please help -
Re: How to converting from PL/SQL query to T-SQL query
How to converting from PL/SQL query to T-SQL query... Its Urgent
Download the
SQL Server Migration Assistant for Oracle. It will convert whole Oracle databases, or single queries or PL/SQL stored procedures.
With caution that If your database is using Collation which is case sensitive SSMA will not work.SSMA doesnt guarantees 100% for conversion of Queries/stored proc /database if it fails to do so for some queries you will have to do it manually.
But you can try
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
How to convert date from ccyymm format to mmddyy
hi,
How to convert date from ccyymm format to mmddyyPlease don't multipost. This question has been answered in your first post.
How to convert date to ccyymm format
Regards,
Jo -
How to convert raw files from new fujifilm x-t1 ?
how to convert raw files from new fujifilm x-t1 ?
The work around of converting the CR2 to dng either with the dng converter or ACR 6.7 will allow working in LR and CS5 but not with the latest raw conversion engine from Adobe i.e PV 2012.
Remember to keep a copy of the CR2 files if you wish to utilize the Canon software. -
How do I open my H&R Block tax files, transferred to my Mac Pro from my PC? I guess they're in Windows format,but I don't know how to convert.
CaptainTom1There should be an H&R block format. Windows or no.
Just like JPEG or MP3 is a format readable by Mac or PC.
The main cause of PC vsWindows files issues is in "text only" files that require "line terminators". Windows line terminaotrs are <CR><LF>, UNIX is <LF>, Mac can be <CR> or a <LF>. The text editors that are PC-files-only cannot properly read text lines terminated with <LF> only. -
How to convert Sequence file documentation from TXT or HTML to MS Word ?
Hello, I would like to modify a DocSupport.prj which in default generate only TXT or HTML to support MS Wors *.DOC. I have already change the dialog (add *.doc filter..), that was simple. But the major problem is how to convert the output from doc.c to some *.doc file. I found somewhere here Word9 ActiveX Instrument for CVI, but I don't understand, how the CVI gets informations about the steps etc. from *.seq file for another use. The original code in doc.c is quite hard to understand it quickly. Thanks for help.
Hi Pet007,
You should be able to just change the file it saves to's extension to .doc. You'll notice there is a define for txt, you could either change this to doc or if you still want to be able to use txt, create a new define and use this. If you do this you'll need to also add a define above (as you see it defines an integer for each different format type and uses those throughout the program as well). That should give you a good starting point for modifying this code. Unfortunately it is quite extensive to actually accomplish this, or else I could give a step by step guide, but it is rather long. But you should be able to get it working from this. The reason this should work is because Microsoft Word (.doc) files understand plain text just like .txt files. However, if you want to add formatting (fonts, bold text, etc) you would need to use the ActiveX Instrument for CVI which just access the ActiveX server from Microsoft. For more information about ActiveX in CVI visit the following link.
Using LabWindows/CVI as an ActiveX Automation Controller to Control Automation ServersAlso, this link gives an example of using Excel with CVI through ActiveX, which may give you some useful information about doing this type of thing.
Embed Excel ActiveX Documents on a CVI PanelFor more information on using Word's ActiveX Server, check out the following Microsoft Portal.
Word Developer Portal
Brandon Vasquez | Software Engineer | Integration Services | National Instruments
Maybe you are looking for
-
Hi all, I have some questions related to restart behaviour in update process. So my story is: I made a software update group and deploy to a collections. In Deployment I've selected: The client receive the update: WindowsUpdate.log 2015-02-25 16:42:3
-
I'm trying to download itunes but everytime an error comes up that says that^^^.After another error comes up that says "Service 'Apple Mobile Device'(Apple Mobile Device) failed to start. Verify that you have sufficient privileges to start sysrem ser
-
Radio stations using flip4mac not playing after upgrading to Lion
I used to listen to radio station-streaming which used flip4mac. Everything worked fine until I upgraded to Lion. I have searched around in different fora and I realized that there are many reports about similar problems. Has anyone heard of a soluti
-
Cannot disable Homes: Enable Virtual Share Points
Hello, We just installed 10.5 server this morning, and many things seem to be a big improvement-- e.g., the new version of Samba (3.0.25) now allows AD transitive trust users to connect, whereas 10.4's Samba (3.0.10) did not. But the problem now is:
-
How to send remainder after 15 days for alert which is already sent
Hi, I m creating an email alert which will send the mail for po's which requires to get the appoval. then if after 15 days also there is no action taken on that po then again the mail will go to approver. select PAH.ACTION_CODE, (select SEGMENT1 from