Inserting text 5Kb in size
Dear everyone,
What is the most optimal way of inserting text of
more than 5Kb into a DB using INSERT statement?
Is there a way for me to insert in chunks, say of
1Kb? How would I implement it?
What is the recommended max size of text that I
can have in a field?
I seem to run into all kinds of trouble inserting
large amounts of data - sometimes the INSERT query
just freezes!
Your help is deeply appreciated!
George
If you have BIG strings it might be better to use a BLOB field instead of Varchar
Similar Messages
-
How to insert text in existing file.?????
how to insert text in existing file.?????
my file contains simple text with numbers of lines having more then 10 MB size and it might be increase up to 100MB.
i required to seek to spec. position and insert chunk of characters to file without overwriting existing one.
I tried out with RandomAccessFile class Also.
Pl. Suggest me way to insert String in existing file.
Thanks ,
Timirhow to insert text in existing file.?????You can't "insert" text into an existing file. You can
overwrite portions of an existing file or extend one by
writing past the current end of file.
If you want to insert text into a file you have to write
out a new file. -
Is it possible to insert text in a picture in Lightroom?
Is it possible to insert text in a picture in Lightroom?
The text options are very limited.
Besides the watermark option mentioned already by dj_paige you can
- add text in the Slide Show Module. Click on the letters "ABC" below the image and then select your text options from the drop-down menu. See screen shot.
Besides "Custom Text" as shown you can select any of the other options from the drop-down menu. You are not limited to one choice - you can (one after the other) select any combination from
the drop down menu. You can drag the text boz anywhere you want it to be and you can resize it and adjust the opacity.
When you are done you can export the iamge as PDF - Export as PDF works also with only one image, so it doesn't have to be a "slide show" with several images.
2) In the Print Module the text options are more limited but you can add text in the "Phot Info" panel. Unfortunately you can't move the text around and can't change the size of the text box.
As in the Slide Show Module you can save the image from the Print Module by selecting "Print to File" which creates a JPG.
WW -
As a windows switcher, I'm just starting to use the ilife suite. I made a slideshow using iphoto and inserted text. The problem is that the text is in a very small font and in the upper left hand corner of the slide. I can't figure out how to move the text to the bottom of the screen, increase the size and change the color to yellow. Is this possible in iphoto? Other than this, I am thrilled to have a new apple computer.
Don,
If you had an album that you made into a slideshow, find the album in the photo media browser in iMovie and drag the photos into the timeline.
Now highlight each image and click on the title tab. Find the right title that is static and places the title where you want. I am not sure if there are any included titles that fit your need, but there are plenty of plugins that will have the title the way you want.
The only problem is, iPhoto titles are not autofilled in the title field so you will have to input the text. It will take longer I know.
After you add the titles, then you can add the Ken Burns, then transitions.
You will really have to experiment to get it the way you want.
good luck!
Lori -
How to insert text in current Pdf?
I try to insert text into current pdf i am getting unexepected error
PDEContent pdeContent;
AVDoc avDoc = AVAppGetActiveDoc();
PDDoc pdDoc = AVDocGetPDDoc (avDoc);
PDPage pdPage = PDDocAcquirePage(pdDoc,AVPageViewGetPageNum(AVDocGetPageView(AVAppGetActiveDoc())));
pdeContent = PDPageAcquirePDEContent(pdPage, NULL);
//Create a PDEText object
PDEText pdeText = PDETextCreate();
// Create a DEGraphicState object and set its attributes
ASFixedMatrix textMatrix;
//Create an ASFixedMatrix object
memset(&textMatrix, 0, sizeof(textMatrix)); /* Set the buffer size */
textMatrix.a = Int16ToFixed(24); /* Set font width and height */
textMatrix.d = Int16ToFixed(24); /* to 24 point size */
textMatrix.h = Int16ToFixed(1*72); /* x,y coordinate on page */
textMatrix.v = Int16ToFixed(2*72); /* in this case, 1" x 2" */
PDEGraphicState gState;
PDEColorSpace pdeColorSpace = PDEColorSpaceCreateFromName(ASAtomFromString(colour_space.c_str()));
memset(&gState, 0, sizeof(PDEGraphicState));
gState.strokeColorSpec.space = gState.fillColorSpec.space = pdeColorSpace;
gState.miterLimit = fixedTen;
gState.flatness = fixedOne;
gState.lineWidth = fixedOne;
PDSysFont sysFont;
PDEFont pdeFont;
PDEFontAttrs pdeFontAttrs;
//Set the size of the PDSysFont and set its attributes
memset(&pdeFontAttrs, 0, sizeof(pdeFontAttrs));
pdeFontAttrs.name = ASAtomFromString("CourierStd");
pdeFontAttrs.type = ASAtomFromString("Type1");
//Get system font
sysFont = PDFindSysFont(&pdeFontAttrs, sizeof(PDEFontAttrs), 0);
//Create a font that is used to draw text on a page
pdeFont = PDEFontCreateFromSysFont(sysFont, kPDEFontDoNotEmbed);
char *chrNewFilePath = "Doc.pdf";
ASText asFilePath = ASTextFromUnicode(reinterpret_cast <ASUTF16Val *> (chrNewFilePath), kUTF8);
//Create a character pointer
char *HelloWorldStr = "Hello There";
//Create new text run
PDETextAdd(pdeText, //Text container to add to
kPDETextRun, // kPDETextRun
0, // in
(unsigned char*)HelloWorldStr, // Text to add
strlen(HelloWorldStr),// Length of text
pdeFont, // Font to apply to text
&gState, //Address of PDEGraphicState object
sizeof(gState), //Size of graphic state to apply to text
NULL,
0,
&textMatrix, //Transformation matrix for text
NULL); //Stroke matrix
::free(chrNewFilePath);
ASFileSys asFileSys = ASGetDefaultFileSysForPath(ASAtomFromString( "ASTextPath" ), asFilePath);
ASPathName asNewPath = ASFileSysCreatePathName(asFileSys, ASAtomFromString( "ASTextPath" ), asFilePath, 0);
PDDocSave(pdDoc, PDSaveFull , asNewPath , asFileSys, NULL, NULL);I changed that code to below mention code, when i was run the plugin and after close the acrobat it asking for save, but it doesn't show any text text
ASFixedRect cropBox;
char errorMsg[256];
ASInt32 errorCode = 0;
PDPageGetCropBox (pdPage, &cropBox);
// Initialize the font descriptor then create the font reference.
// Because we're using one of the base 14 Type 1 fonts, we only
// need to pass a small amount of information to PDEFontCreate().
PDEFont pdeFont = NULL;
PDEFontAttrs pdeFontAttrs;
memset(&pdeFontAttrs, 0, sizeof (pdeFontAttrs));
pdeFontAttrs.name = ASAtomFromString( "Courier" );
pdeFontAttrs.type = ASAtomFromString( "Type1" );
DURING
// Create the font reference.
pdeFont = PDEFontCreate(&pdeFontAttrs, sizeof (pdeFontAttrs), 0, 255, 0, 0, ASAtomNull, 0, 0, 0, 0);
HANDLER
ASGetErrorString (ASGetExceptionErrorCode(), errorMsg, 256);
AVAlertNote (errorMsg);
return NULL;
END_HANDLER
PDEColorSpace pdeColorSpace = PDEColorSpaceCreateFromName(ASAtomFromString( "DeviceGray" ));
PDEGraphicState gState;
ASFixedMatrix textMatrix;
// The graphics state controls the various style properties of the text
// including color, weight, and so forth.
memset (&gState, 0, sizeof (PDEGraphicState));
gState.strokeColorSpec.space = gState.fillColorSpec.space = pdeColorSpace;
gState.miterLimit = fixedTen;
gState.flatness = fixedOne;
gState.lineWidth = fixedOne;
// Fill out the text matrix, which determines the point
// size of the text and where it will is drawn on the page.
memset (&textMatrix, 0, sizeof (textMatrix));
textMatrix.a = ASInt16ToFixed(12);
textMatrix.d = ASInt16ToFixed(12);
textMatrix.h = cropBox.left + (cropBox.right - cropBox.left)/2 - fixedSeventyTwo;
textMatrix.v = cropBox.top - (cropBox.top - cropBox.bottom)/2 - fixedThirtyTwo;
PDEText volatile pdeText = NULL;
DURING
// Create a new PDEText element and add a kPDETextRun object to it.
pdeText = PDETextCreate();
PDETextAdd (pdeText, kPDETextRun, 0, (Uns8 *) "This page intentionally blank" , 30,
pdeFont, &gState, sizeof (gState), NULL, 0, &textMatrix, NULL);
// Insert text element into page content.
PDEContentAddElem (pdeContent, kPDEAfterLast, (PDEElement)pdeText);
// Commit the changes to the PDEContent.
PDPageSetPDEContent(pdPage, gExtensionID);
// Advertise that we changed the contents so the viewer redraws the
// page and other clients can re-acquire the page contents if needed.
PDPageNotifyContentsDidChange (pdPage);
HANDLER
// Store the error code.
errorCode = ASGetExceptionErrorCode();
END_HANDLER
// Release any objects we may have created or acquired.
// Note : PDERelease correctly handles NULL, so we don't
// need to test for valid objects.
PDERelease ((PDEObject) pdeColorSpace);
PDERelease ((PDEObject) pdeFont); -
Photoshop CC 2014 UI Menu Text And Icon Size?
so i really like that adobe has added the "experimental" option to increase the ui menu text and icon size in photoshop cc 2014, it was almost unreadable on my 2560 x 1440 27" monitor with photoshop cs4 and illustrator cs4, but the lone 200% setting is too big... seems that 125%, 150%, or maybe even 175% would be much better solutions. in fact, for reasons i can't quite understand, the ui text and icon size in illustrator cc 2014 is spot on, absolutely perfect on my monitor, even tho there is no option for increased ui size as far as i can tell, it was spot on the moment i installed and launched it.
in short, the photoshop cs4 and illustrator cs4 user interfaces were identical in size as far as i could tell, and far too small on my 2560 x 1440 27" monitor. in terms of cc 2014, the illustrator ui is perfect out of the box on my monitor, considerably larger than illustrator cs4, while the photoshop cc 2014 ui is identical to cs4, tiny, but can be enlarged 200% which makes the ui too big. why couldn't/didn't adobe just make the photoshop cc 2014 base ui the exact same size as the illustrator cc 2014 ui? it would have been perfect (for my monitor size).thanks... just wish illustrator cc 2014 wasn't so perfect in terms of ui size, i mean it's just great and, consequently, makes it seem as if the ball was dropped with photoshop cc 2014... i mean how can one be spot on while the other be so far off?
-
Portfolio pdf- why is text in different sizes on each page of pdf?
Even though i have saved my images with text (always font size 12) as the same size (eg. 10in x 10in at 100ppi), each time i save the images as a pdf the pdf then has all different size text from image to image- a complete mess as a portfolio.
Also when i then changed the size of the image and saved it as a copy, both images and text stay the same size! though both the ppi and scale differ in each images....
How do i change this? any tips appreciated!You can't write directly in PDF from Output Module, only add a header or
footer text but that will repeat itself each page.
You could try so in an app like Word or if you have Pages or other design
application it would be possible to make your own layout and text and from
there save as PDF.
You can also try in PS, just create a template frame (new file) big enough
to paste the images in and with space around including more at the bottom
where you add the text you want. On the frame put a text layer and the file
layer for the image by either drag and drop or copy paste. Resize the image
till it fits in the frame
You cans resize the image on the template layer to fit in the frame as you
like and save as new files.
Now you have same sized frame with same ppi and font size.
With this files selected in Bridge in the order you want choose Output
Module with option for paper size, landscape or portrait, background color.
Choose 1 column and 1 row including auto space, deselect filename and
extension and also deselect header and footer if thy are not so already
(unless you want some text and page numbers)
I created the images in photoshop and then i use the bridge adobe output
module- the pdf is a multiple page document with one image per page which
has text written beneath the image -
as in the image is saved with a frame with title/text.
Is there a way of writing individual text directly onto each pdf page
instead of the image? perhaps this will solve the issue of differing text
sizes....? -
How can I insert text in a photo?
How can I insert text onto a photo? Before Lion used Command T. Have not installed Page or Numbers. Have Microsoft for Mac.
Open the photo with Preview and select ⌃⌘T.
(Also, take a look at: Skitch) -
Script to find a specific section in file & insert text below - how?
I am dealing with kind of a problem here - I am using pekwm as my window manager and I use menumaker to automatically update the menu on every startup. My problem is that the original pekwm, the first two sections called 'terminal' and 'Run' and the last two sections called 'Go To' and 'pekwm' are overwritten/modified by mmaker so that there's only the applications submenues and 'pekwm' with the 'Themes' section erased and I want to somehow preserve all that. I was thinking of creating a bash script that does the mmaker thing and then use 'sed' or 'echo' to insert the code back into the appropiate areas of ~/.pekwm/menu.
All I really need to know is how to find a particular string of code in the menu file and insert a block of text below that line using sed or echo.
Any ideas?
Last edited by lostinpurdy (2010-07-10 02:32:38)Looks interesting. But I'd like to keep it as simple as possible and avoid the part with the extra textfiles and just insert the code text straight into the menu file, kind of like this:
mmaker --no-desktop -vf pekwm
sed {
find-and-goto-line-below-'root menu'-declaration, insert-text {
entry for 'terminal'
entry for 'run"
~/.pekwm/menu
sed {
find-line-below-'pekwm'-submenu-declaration, insert-text {
entry for 'themes'
~/.pekwm/menu
Obviously it's not real code but it's just to outline how I'd like to have it. Just need to know the correct syntax to make it work. I don't care much for 'Go To' and the rest.
Last edited by lostinpurdy (2010-07-10 03:48:10) -
How to insert text in the text-id using BDC
Hi Friends,
I m using the BAPI to upload the data for a transaction .
In that transaction there are some text id's are created to insert text like 'Container number'.
I want to insert the text in that text id . But it not a field. Text ids are having object no and table and number .
Is there any function like 'READ_TEXT' which we use to retrieve the text form text ids to write text in text ids ?
So that I can use that function to insert the text in the text ids.
Thanxs.Hi Umesh,
READ_TEXT is used to Read the text , but SAVE_TEXT is used to save the text. but for reading or saving you need correct iD's and text objects.
Regards
vijay -
Inserting text into a field at the current cursor position
Does anyone know how to insert text into a field at the current cursor position? I would like it to work similar to the Syntax Palette in Forms. I cannot figure out how to retrieve the current cursor position in order to manipulate the text.
Any help would be great.
Thanks.Hi,
If the button and the textfield are on in the same subform then this code should work in the click event of the button
(This is JavaScript code so make sure the code is set to JavaScript and Client on the drop downs in the script window)
(assuming the name of the textfield is TextField1)
TextField1.rawValue = "some value";
If they are in different subforms then you have 2 options
Please note in both these options it is easier if the subforms have names ( I am assuming this to keep samples simple)
option 1 -
use the parent object to move up the tree till you are at the same level as that of the subform that contains the textfield
e.g.
(Click Event of the button)
this.parent.subformname.TextField1.rawValue = "some value";
option 2 -
Use the resolve node to make your way down from the top level of the form
xfa.resolveNode ("form1.subformname.TextField1").rawValue = "some value";
Hope this helps
Malcolm
p.s. I am making assumptions as the image/file you attached did not appear for me. -
Inserting text into a Pages document with Applescript
I want to create a Pages document from a custom template but be able to insert text at various points in the document (inputted data under headings etc). I would like to use Applescript but cannot get insertion points to work, is this possible? As usual, all help gratefully accepted.
I have made a Pages template that contains tables and I want to enter text into sections of these tables
That's a completely different story! But that's still possible using GUI Scripting. Here's an example:
tell application "Pages"
activate
select table 1 of body text of front document
tell application "System Events" to tell process "Pages"
set theWindow to window 1 whose role description is "standard window"
click button "Table" of tool bar 1 of theWindow
keystroke "Cell A1"
keystroke tab
keystroke "Cell B1"
key code 125 -- down arrow
keystroke "Cell B2"
-- and so on
end tell
select insertion point after table 1 of body text of front document
end tell -
Inserting Text into a web page
I need to know how to insert text into a webpage, like google, search, and then get the result.
Using the wonders of the internet I have been able to display a webpage, and see the HTML code that is generated, however, I don't know how to insert text into a web page, or get the result.
Any help, or pointing into the right direction would be appreciated.What do you mean by insert into web page? Like
prefill data on a form?
Or like a search on google? What are you using to
do this?
I am guessing based on the info you gave in your
question, that you might want to just look at the url
of the page. For example search on google and you
will see the text entered into the search field
inside the url. Learn from that and develop a url
that will search for the text you want to insert.
If I am not understanding you, please clarify.Right now, I'm using the URL to search for me, which will work, but the search can be different from website to website, and I would like something closer to an automated form filler if I need to implement something like this again.
Of course, something like an automated form filler would probably work better, if I were able to retreve the results -
Inserting text from a variable in actionscript
what is it called when you insert text from a variable in actionscript?
Your question is not clear. There is no specific name for the process of inserting text from a variable that I am aware of.
If you have a dynamic textfield that you have assigned an instance name to, let's say you named it "tField", then to assign a variable called "aVar" to that textfield you would use:
tField.text = aVar; -
How use SDK to insert text in indesign using c++
Hello All
I want to use Indesign CS5.5 SDK in my c++ project first to create Indesign Document then insert text in textframe.
How include SDK in my project ?
Is it right method to create indesign Application using SDK.
#include "IApplication.h"
#include "ISession.h"
# include "IDocumentCommands.h"
virtual IApplication * QueryApplication()=0 ;
ISession * GetExecutionContextSession();
IApplication application(GetExecutionContextSession()->QueryApplication());
It required so many .h file, first I copy .h file from SDK and put in Project directory but it give some error after including these .h file in project.
There are so many directory(source,build,docs, etc.) in SDK.How include and use this SDK in my project to create Indesign Document.
How include so many .h file in my project ?
I have already included SDK path in VisualStudio2008 ->Tools->Option->ProjectSolutions->vc++Directories
Thanks.Hi Jongware,
This is not correct in C# you have type cast all the object to another Object and then only we can access it in required format
for example
if want to get font in active Document
InDesign.Application myInDesign= (InDesign.Application) COMCreateObject("InDesign.Application");
InDesign myDocument = (InDesign.Document)myInDesign.ActiveDocument;
InDesign.ParagraphStyles pStyles = (InDesign.ParagraphStyle)myDocument.ParagraphStyles
InDesign.ParagraphStyle pSteyls = (InDesign.ParagraphStyle)myDocument.ParagraphStyle
for(int i =0;i<pStyles.Count;i++)
pStyle = (InDesign.ParagraphStyle)myDocument.ParagraphStyles[i];
public static object COMCreateObject (string sProgID)
// We get the type using just the ProgID
Type oType = Type.GetTypeFromProgID (sProgID);
if (oType != null)
return Activator.CreateInstance( oType);
return null;
like above content
for selection content u have to type cast selection object.
InDesign.Selection = (InDesign.Selection).myDocument.Selection;
Console.Writeline(InDesign.Selection.Contents);
but it showing error....
like this you have to type cast all things in C# and you cannot simply get selection contents like app.selection[0].contents
pls help me
Thank you for your reply....
R. Thangaraj
Maybe you are looking for
-
Need help in preparation of BR30 and BP80
Dear Gurus, I am new to the implementation and we are about to complete requirement gathering.... soon i need to prepare BP 80 and BR 30 for OM, INV and PO, i have gone through the available information on the web. Still some confusion, can anyone pl
-
Change Item Text and Header Text in Posting Document
Hi Experts, When Travel Document is posted in FInance - i) Document Header is blank. ii) and Item Text is *Trip from 01.09.08 To 01.09.08 to Mumbai I want to change the Header Text with Expense Schema and Item text with Schema and additional Text.
-
How to get the number of pages when assemble pdf with DDX
Hi, I have tried to add two bookmarks to one pdf with DDX(in java code), the first bookmark I shall add to the first page,and the second I shall add to the second page.... the question is: If the pdf has only one page, I will not a
-
Existence check during archiving : AM_ASSET
According to the job network graphic of archiving object 'AM_ASSET', PS_PROJECT is prerequisite. Could anybody tell me what is checked during writing program/deletion program of AM_ASSET? For example, existence check of related PROJECT is done during
-
Does anyone know of any utility which can allow a change in the way songs are rated ? I'm looking for either more than 5 stars or the ability to award 1/2 stars to tracks. I have nearly 10,000 tracks and find the 5 stars system not enough - anyone el