Export to text file only one big page
We currently have an application that was developed in VB6 that calls a number of Crystal Reports RPT files. These Crystal Reports RPT files were developed in Crystal Reports 6. The problem is that when exporting to TXT format only 1 big page is shown with 1 header, but the report contains multiple pages and headers. When exporting to other formats such as PDF and RTF, the pages and headers are shown correctly.
Any help would be much appreciated.
Will.
Hi William,
What version are you developing in now?
Does it work the same in the Reprot Designer as in code?
Thank you
Don
Similar Messages
-
Export to Text file does not page
Since I applied SP 7 for Crystal 9, when I export a report to a text file it does not page and print the report header on each page. It prints the report header once and one lone continuous page of information. My report was export to text with a page header on each page before I applied the service pack. How do I get it to page in the text export and print the page header on each page?
In 8.5 the default behavior of the export to text was to not paginate. With 9 you have a paginate option when you manually export data to text, however when processing in batch
Mary Vertz wrote:
export in the background
you had no such option and it simply defaulted to 60 even for those reports that were suppressing the page header. This causes those text files to have a new-page marker at the start of every 62nd line. This causes the data on that line to be moved 1 character to the right and caused many issue with 8.5 backwards compatibility as this functionality was used for flat file interfaces for instance with the bank for positive pay.
In SP7 they addressed this issue and changed the default behavior to not paginate and enabled a parameter to be passed to control pagination during batch processing.
If that
database application
is PeopleSoft, the parameter that needs to be added to the process request is -LN<number of lines> ex. -LN60
Also note that the CPI can be set via the command line as well. For PeopleSoft it's -CPI<numerical value> which defaults to 12 if it isn't specified.
Unfortunately I do not have the SP7 release notes handy to provide more detail on these options.
Thanks
Drew -
How to display a text file in a html page?
I have written a servlet that executes a batch file whose output is saved to a txt file. I am attempting to display content of the text file as a html page from the servlet but am struggling I have attempted to read the file and output it as shown below but it is not displaying the correct data
Appreciate some help
Thanks in advance
Amjad
Runtime r = Runtime.getRuntime();
Process p = r.exec("C:\\Condor\\test\\QueStatus.bat");
PrintWriter out;
String title = "Que Status";
response.setContentType("text/html");
out = response.getWriter();
FileReader fr = new FileReader ("C:\\Condor\\test\\output.txt");
for (int chr = fr.read(); chr != -1; chr = fr.read()){
out.print(chr);
}Couple of things. First you should search the forums for how to properly exec a dos batch file. There are some problems you may run into especially with io. I suspect you may not actually be running that batch file at all.
I would test outputing a text file separately from execing the batch file.
Here is some code so you don't have to output 1 char at a time. Setting the content length and closing the output stream might help.
File downloadFile = new File("c:\\blah\\blah\\blah");
response.setContentLength((int)downloadFile.length());
response.setContentType("text/html");
ServletOutputStream out = response.getOutputStream();
FileInputStream fis = new FileInputStream(downloadFile);
byte[] buffer = new byte[1024];
int bytesRead;
while ((bytesRead = fis.read(buffer)) != -1) {
out.write(buffer, 0, bytesRead);
fis.close();
out.close(); -
Why does my iphone send all text from only one of my contacts to my email?
Why does my iphone send all text from only one of my contacts to my email? I'm curious to know if anyone else has had this issue with the Iphone 5s...
imessage has a new setting that shows all emails associated with your apple id. There are two sections, send and receive. Since you are using the same apple id, Im sure if you adjust one of those settings to your mobile number instead of your appleid, it wont send double.
You might also have to adjust your wifes settings too, so those emails dont overlap -
Exporting slideshow leaves includes only one audio file, leaves off others
I have a slideshow which is fairly long, and uses several songs from an iTunes playlist. When I play the slideshow in iPhoto, the slideshow works perfectly. However, when I export the slideshow, either by exporting to a Quicktime movie or sending to iDVD, the photos export properly, but only the first audio file from the playlist is included in the slideshow. Therefore, when I play it, either in iDVD or Quicktime, the slideshow has audio until the first song ends, then the slideshow has no audio, and is completely silent.
Is anyone else having this problem, and is there a way around it?
BradHi Bradley,
Yes, others are experiencing it and it is a new bug introduced from one of the updates. apple is aware of it and so far no solution has been found.
Only one song exporting with Slideshows
Right now, this seems to be a know problem/bug. There have been some work-arounds. Don't know if the problem is with iPhoto, Quicktime or a combo of both.
-From Bob Worthington: re-ripping the cuts I wanted as background music for the DVD as a single cut in iTunes. I then made a playlist containing the one extended cut of music.
-Old Toad: share to Quicktime from iPhoto and then import the resulting movie into iMovie you can extract and delete the audio from the video and add the two songs to the video and save.
Quicktime Pro-open the movie and bring up the Movie Properties menu window. In the top window select the audio track and delete it.
If you want more than one song you'll have to join them together with iMovie or some other application. Then open that joined file with QT Player. Then do a select all and copy. Now go to the QT window of the movie and select the Edit->Add to Movie menu option. You don't want to scale it because it will change the play speed of the audio unless it's time is exactly the same as the movie.
You could go the other way, open the movie, select all and copy, and then past with scaling to the audio. That will change the speed of the movie and transitions to fit the audio track. In this case the resulting video file will have the name of the audio track file that you started with.
You may have to play with it a bit to get exactly what you want. Be sure to work with copies of all the media files for the project.
-Peter Burtwistle: I opened the Qt movie that iPhoto makes when you export to iDVD and removed the sound track.
Then made a new soundtrack by opening all three songs in QT, then cutting and pasting them together.
Finally use QT Pro's 'Add to Movie" option to add the soundtrack to the original movie.
This worked well and was fast to do too.
-Joe Lombardo: I ended up having to extend the songs by 20 seconds so I brought them all into GarageBand and made some edits. Then I exported them all to iTunes as a single track and used that for the slideshow
Lori -
Snow Leopard brand new iMac, several user accounts: some Safari pages show AAAAAAAAAA instead of tex, but for only one of the users
Check out this thread. https://discussions.apple.com/message/11938010#11938010
-
Add/Remove Programs - export to text file?
Hello,
I am wondering if it is possible to export a list of everything in add/remove programs to a text file for inventory purposes.
I have not found any easy method to do this short of copying reg files or installer 3rd party software. Since the idea is to save time neither of those are viable solutions.
Does anyone have any ideas?
-JustinYou could try this vbs script that lists installed programs and add info to a text file.
Michael Petersen
Option Explicit
Dim sTitle
sTitle = "InstalledPrograms.vbs by Bill James"
Dim StrComputer
strComputer = InputBox("Enter I.P. or name of computer to check for " & _
"installed software (leave blank to check " & _
"local system)." & vbcrlf & vbcrlf & "Remote " & _
"checking only from NT type OS to NT type OS " & _
"with same Admin level UID & PW", sTitle)
If IsEmpty(strComputer) Then WScript.Quit
strComputer = Trim(strComputer)
If strComputer = "" Then strComputer = "."
'Wscript.Echo GetAddRemove(strComputer)
Dim sCompName : sCompName = GetProbedID(StrComputer)
Dim sFileName
sFileName = sCompName & "_" & GetDTFileName() & "_Software.txt"
Dim s : s = GetAddRemove(strComputer)
If WriteFile(s, sFileName) Then
'optional prompt for display
If MsgBox("Finished processing. Results saved to " & sFileName & _
vbcrlf & vbcrlf & "Do you want to view the results now?", _
4 + 32, sTitle) = 6 Then
WScript.CreateObject("WScript.Shell").Run sFileName, 9
End If
End If
Function GetAddRemove(sComp)
'Function credit to Torgeir Bakken
Dim cnt, oReg, sBaseKey, iRC, aSubKeys
Const HKLM = &H80000002 'HKEY_LOCAL_MACHINE
Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
sComp & "/root/default:StdRegProv")
sBaseKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"
iRC = oReg.EnumKey(HKLM, sBaseKey, aSubKeys)
Dim sKey, sValue, sTmp, sVersion, sDateValue, sYr, sMth, sDay
For Each sKey In aSubKeys
iRC = oReg.GetStringValue(HKLM, sBaseKey & sKey, "DisplayName", sValue)
If iRC <> 0 Then
oReg.GetStringValue HKLM, sBaseKey & sKey, "QuietDisplayName", sValue
End If
If sValue <> "" Then
iRC = oReg.GetStringValue(HKLM, sBaseKey & sKey, _
"DisplayVersion", sVersion)
If sVersion <> "" Then
sValue = sValue & vbTab & "Ver: " & sVersion
Else
sValue = sValue & vbTab
End If
iRC = oReg.GetStringValue(HKLM, sBaseKey & sKey, _
"InstallDate", sDateValue)
If sDateValue <> "" Then
sYr = Left(sDateValue, 4)
sMth = Mid(sDateValue, 5, 2)
sDay = Right(sDateValue, 2)
'some Registry entries have improper date format
On Error Resume Next
sDateValue = DateSerial(sYr, sMth, sDay)
On Error GoTo 0
If sdateValue <> "" Then
sValue = sValue & vbTab & "Installed: " & sDateValue
End If
End If
sTmp = sTmp & sValue & vbcrlf
cnt = cnt + 1
End If
Next
sTmp = BubbleSort(sTmp)
GetAddRemove = "INSTALLED SOFTWARE (" & cnt & ") - " & sCompName & _
" - " & Now() & vbcrlf & vbcrlf & sTmp
End Function
Function BubbleSort(sTmp)
'cheapo bubble sort
Dim aTmp, i, j, temp
aTmp = Split(sTmp, vbcrlf)
For i = UBound(aTmp) - 1 To 0 Step -1
For j = 0 to i - 1
If LCase(aTmp(j)) > LCase(aTmp(j+1)) Then
temp = aTmp(j + 1)
aTmp(j + 1) = aTmp(j)
aTmp(j) = temp
End if
Next
Next
BubbleSort = Join(aTmp, vbcrlf)
End Function
Function GetProbedID(sComp)
Dim objWMIService, colItems, objItem
Set objWMIService = GetObject("winmgmts:\\" & sComp & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select SystemName from " & _
"Win32_NetworkAdapter",,48)
For Each objItem in colItems
GetProbedID = objItem.SystemName
Next
End Function
Function GetDTFileName()
dim sNow, sMth, sDay, sYr, sHr, sMin, sSec
sNow = Now
sMth = Right("0" & Month(sNow), 2)
sDay = Right("0" & Day(sNow), 2)
sYr = Right("00" & Year(sNow), 4)
sHr = Right("0" & Hour(sNow), 2)
sMin = Right("0" & Minute(sNow), 2)
sSec = Right("0" & Second(sNow), 2)
GetDTFileName = sMth & sDay & sYr & "_" & sHr & sMin & sSec
End Function
Function WriteFile(sData, sFileName)
Dim fso, OutFile, bWrite
bWrite = True
Set fso = CreateObject("Scripting.FileSystemObject")
On Error Resume Next
Set OutFile = fso.OpenTextFile(sFileName, 2, True)
'Possibly need a prompt to close the file and one recursion attempt.
If Err = 70 Then
Wscript.Echo "Could not write to file " & sFileName & ", results " & _
"not saved." & vbcrlf & vbcrlf & "This is probably " & _
"because the file is already open."
bWrite = False
ElseIf Err Then
WScript.Echo err & vbcrlf & err.description
bWrite = False
End If
On Error GoTo 0
If bWrite Then
OutFile.WriteLine(sData)
OutFile.Close
End If
Set fso = Nothing
Set OutFile = Nothing
WriteFile = bWrite
End Function
Deploy deploy deploy -
Post Author: shfisher
CA Forum: Older Products
We have a fairly complex report written in Crystal 8 that displays within seconds in the viewer. A user routinely exports this report to a text file, and until approximately three weeks ago, the export also took less than 30 seconds. Now the export is taking approximately three minutes. I have seen similar posts on this topics but no solutions. Are records queried differently for an export? What could have caused this sudden slowdown?Post Author: sarojmishra
CA Forum: Older Products
I have very big Database and it contains more then 600 millions of records.
Everyday, I am generating different report by using 30 millions of record.
I have 4 no of similar high end system.
3 systems are giving the result within 4 hours but one system giving result after 8 hours.
I verified the table space, indexes, system configuration and code. There are no differences.
My system performance tools saying BO and Oracle taking more time.
Oracle is giving result very fast using BO query.
So, I hope BO is having some difference.
Any solutionu2026
With Regards,
Saroj Mishra -
Post Author: hepburn
CA Forum: Exporting
I'm using Visual Studio 2005 Team Suite which I believes has Crystal Reports 10 installed.I'm trying to export to a text file. Here's the code I have so far: DiskFileDestinationOptions diskOpts = ExportOptions.CreateDiskFileDestinationOptions(); // set the export format ExportOptions exportOpts = new ExportOptions(); exportOpts.ExportFormatType = ExportFormatType.RichText; exportOpts.ExportDestinationType = ExportDestinationType.DiskFile; diskOpts.DiskFileName = AbsolutePath("c:/pleasework.txt"); exportOpts.ExportDestinationOptions = diskOpts; _crReportDocument.Export(exportOpts);Is RichText the only text option I have?? I've been googling and it sounds like I may need to install a dll to export to text. Can anyone confirm that?Thanks much...<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by David Brown ([email protected]):
Liv,
Just tried with an individual file export and this worked. What are you trying to export?
David<HR></BLOCKQUOTE>
null -
Problem with alv output export to text file
hi experts,
when iam exporting alv output to text file,
some data is missing in text file.say for example sold-to-party value is 1155027 in alv out put,but in text file it is showeing only 115502 ,
the last digit is missing,
can anyone help urgent!!!!!and when you export it to excel?
from here you could save it as text file too...
A. -
How to export to text file without ruin the format
Hi guys,
I need some help here. My company recently come with the decision to print the mainframe report file that usually come as a text file, to a virtual printer. This virtual printer is printing the report as Adobe PDF format. The problem is, my Line of Business have a macros on Excell file that will grab the information from the text file to be processed in the Excell format. I tried to use Adobe Professional 8 to re-convert the PDF file to be text file, but the result is, most of the blank space is gone, and it is align to left, thus make it unusable to the Excell file.
Unfortunately, I can't provide you the sample of the document, because it contain classified customer info.
But appreciate if you can give me some advice.
Thanks and Regards.It sounds as if you are dealing with untagged PDF.
Tagged output PDFs, with a well-formed structure, provide (amoung other things) the ability to Save As/Export
content to some other applications with all or most of the layout/format intact.
I suspect that the output PDFs you have are untagged.
As there is, currently, a rather limited number of applications that support adequate tag management
(FrameMaker, InDesign, MS Word (via Adobe's PDFMaker & to a much lesser extent with Office Save As to PDF - XPS)
I suspect the mechanism used to provide your PDFs won't cut it with regards to providing a tagged output PDF having a
well-fomed structure (which would include dictionaries containing format/layout data).
As alluded to by Bernd, there may be third party plug-ins that might help.
The more reliable/functional ones tend to not be inexpensive.
Be well... -
Hi all,
I have done the logic to manually export oracle data to text files through java classes. but when we tried to execute the script in test server, there were some column values missed out.
I have used the very basic procedure.
"SELECT * FROM table Name". and writing the records to a text file using file writer.
Can anyone make it clear what could be the reason for the missing records?
Thanks in advance.No, I have not used Spool. Just writing to the text file using file writer. missed records are no the last one. some values in the middle.
for example (delimited coulmn values)
fname|lname|ssn|age|gender|country|zip
aaa|bbb|123|24||india|12345
gender cant be null, but i am getting empty record value for gender in text file. -
Export to text file shows extra character at line 60, 120 so on
Hi,
I am using Crystal report 13 with .net 4.0 ( Visual Studio 2010)
I have an issue while exporting from CR to Text file,
After every 60 lines some special character is inserted in the text file. That might be the new page character.
Is this the limitation of crystal report that the data is not shown is pages?
If yes, if there any workaround for this?
Can I set the pagination off for the report- either from .net code OR on the report itself so that I wonu2019t see the unwanted character?[CR for VS 2010 .NET SDK developer guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_dg_2010_en.zip]
[CR for VS 2010 API reference guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_api_2010_en.zip]
See if this helps,
Bhushan. -
Export to text file/sqlfile
I would like to export my oracle 10g DB to text file /sql file in order to import into Mysql db. suggest me how to do it. thanks in advance.
In 8.5 the default behavior of the export to text was to not paginate. With 9 you have a paginate option when you manually export data to text, however when processing in batch
Mary Vertz wrote:
export in the background
you had no such option and it simply defaulted to 60 even for those reports that were suppressing the page header. This causes those text files to have a new-page marker at the start of every 62nd line. This causes the data on that line to be moved 1 character to the right and caused many issue with 8.5 backwards compatibility as this functionality was used for flat file interfaces for instance with the bank for positive pay.
In SP7 they addressed this issue and changed the default behavior to not paginate and enabled a parameter to be passed to control pagination during batch processing.
If that
database application
is PeopleSoft, the parameter that needs to be added to the process request is -LN<number of lines> ex. -LN60
Also note that the CPI can be set via the command line as well. For PeopleSoft it's -CPI<numerical value> which defaults to 12 if it isn't specified.
Unfortunately I do not have the SP7 release notes handy to provide more detail on these options.
Thanks
Drew -
Hi
I'm using Designer 6i (release 2) on NT. When I try to export to a text-file nothing happens. This only works if I choose a container and not for a object at a lower level.
null<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by David Brown ([email protected]):
Liv,
Just tried with an individual file export and this worked. What are you trying to export?
David<HR></BLOCKQUOTE>
null
Maybe you are looking for
-
My Macbook Pro 15" (late 2007) shuts down unexpectedly
I have started having this problem intermittently over the past month, and it has gotten worse over the past two days. I am using my Macbook Pro normally (watching Youtube videos or online streams primarily), and it will suddenly either go to sleep o
-
cannot send on laptop. desktop, with same settings, works fine. getting unknown error on send. please help. here is the setup from the help function. thanks, tim WARNING: This contains sensitive information which shouldn't be forwarded or published w
-
Hi, We have a legal requirement for Hungary and we couldn't find a sap note to solve the problem. Maybe you can help us. We have to post the cash discount in two different accounts. A percentage of the cash discount will be post in the standard cash
-
Using pages to create a two-sided brochure and second page prints upside down!
When using a pages template to create a two-sided brochure, the second page needs to be reversed (upside down) for correct printing when emailing to an outside printer sources. How do I reverse the page within the pages app?
-
Hey all, For anyone interested, Equinux has an alternative to Front Row called Media Central. Click here to download. Jrsy